I found a script that does the upload just fine. What I want to do is to have a single form that gives the file to upload, along with some other fields with info on directory, user etc.
I am trying to parse the field/value pairs using the logic in message 3 of this post [webmasterworld.com], which works fine for a normal form. However it appears that when setting the form type to enctype="multipart/form-data", the field-value pairs are no longer separated by ampersands, so you get nothing.
Is there some workaround to this problem?
Thanks for the help.
It will help you handle getting all of the parameters, pulling in the file, checking for errors, and all kinds of stuff. I believe it's in the default perl install these days, too.
Do-it-yourself form based file upload [arq.net]