[html-formfu] file upload, constraint and resubmit

Michele Beltrame mb at cattlegrid.info
Fri Apr 17 06:58:39 GMT 2009


Hi Josef!

> or does someone has a better way of working with file-uploads and
> resubmits? the logic with tmp-table and session is rather complicated
> and not really generalizable...

Instead of using a Required constraint for the upload field, you could use a
Callback constraint in which you verify if you have the file already and have
the constraint fail only if you don't have it and if it's not being submitted.

Michele.

-- 
Michele Beltrame
http://www.italpro.net/
ICQ 76660101 - SkyPe arthas77



More information about the HTML-FormFu mailing list