Re: Perl/CGI file upload



On Mar 20, 8:37 pm, Joe Smith <j...@xxxxxxxxx> wrote:
Jerome wrote:
The script needs to allow uploading any files from a form (without
knowing the form structure in advance) - basically *any* files given
to it.

Why? Are you willing to accept totally random and inappropriate content?

Yes


To properly deal with a form submission, the CGI needs to know what
to expect. If you have several forms, each of which can upload files,
then you should have several programs (or bits of a combined program),
each of which can use common code to deal with the shared task of file uploads.

-Joe


.