There are two Data::FormValidator related modules that handle file uploads. They both take the approach of saying, "Well the CGI module param method (or equivalent) gives us a file handle. So whatever we do with the file handle or the underlying file, there must still be a file handle at the end."

I cannot see the sense of this approach. It seems much cleaner to me take a two phase approach:
1. Convert the upload file handle (and meta data) into straight data
2. Validate that data.

That's the approach I am taking at the moment. Any thoughts?
#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to