in reply to Cannot open files using CGI

Greetings all,
I must admit I have only briefly looked over your posted code yet there is one thing I would like to mention regarding file uploads with CGI. You must designate your html form as such
<form enctype="multipart/form-data">
this prepares the browser for possible incoming binary data, aka a file upload. Without it you will get the name of the file but its contents will not get passed to your script. The documentation from CGI regarding file uploads can be found here. Once you have that follow the documentation on how to handle the incoming file and you should be golden.

-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo

Replies are listed 'Best First'.
Re: Cannot open files using CGI
by MonkPaul (Friar) on May 28, 2005 at 21:30 UTC
    I can understand you point, some people miss the basics but i double checked my HTML syntax and its got all the necessaries.

    Thanks anway though.