2008/7/30 Will Hawes <[EMAIL PROTECTED]>: > I'd like to add a constraint to a form to limit the file suffix a user > is allowed to enter into an upload field. This is not to check file > type (that's done elsewhere in my code), rather it is intended to make > the form slightly more user friendly by trying to catch > invalid-looking file names early on.
There's a Constraint::File::MIME - if you'd rather still just check the file extension, you could use it as a basis for a new Constraint::File::Ext module. Cheers, Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu