Your problem is not with the file handling. It is that you are trying to read the uploaded file at the same time as you are printing the form. Your script is being called to create the form, when the user then submits something it will be resubmited to that same script. So you need to have a way to know if its the initial request, in which case you print the form, or if they have already filled it out, in which case you upload the file.
In reply to Re: Problem with file upload CGI script
by eric256
in thread Problem with file upload CGI script
by reTard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |