In the ad_form definition was missing a "-html" argument.
ad_form -name fsync -html { enctype multipart/form-data } -form { ... }
I hope it helps.