It wo0rks when you run it on your local server (ie when browser and web server are on the same machine) because both the browser and the CGI program have access to the same filesystems and the filename parameter is therefore meaningful to both. However, obviously, when browser and CGI program are running on different machines the CGI program generally won't have access to the same filesystems, this why the browser uploads the contents of the file in the POST request as one part of the multipart/form-data request body. As has already been pointed out if you were using the CGI module then all of this would be taken care of for you (there is a whole section in the documentation about uploading files) - you would be ill-advised to try and deal with this yourself as it will require parsing MIME content in the HTTP request body.
/J\
In reply to Re: Open(IN,$fullpath) can't find local file
by gellyfish
in thread Open(IN,$fullpath) can't find local file
by JaredHess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |