<form action="/cgi-bin/..." enctype="multipart/form-data" method="post +"> ... </form>
This type of request submits the form field information and the 7-bit encoded file via POST, separated by a boundary separator that delimits these two sections. The CGI parameter from the file field will contain the name of the file, while the file itself must be parsed from the request separately - A lot of this magic is hidden in the init and read_multipart subroutines of CGI.pm, based upon RFC1867.
It should also be noted that the value of the file field form parameter is platform dependent and as such, it cannot be depended upon to return both directory and filename of the uploaded file.
As such, if you are using your own CGI parameter parser, it is more than likely that you are simply not extracting this information from the submitted POST - This is another reason why it is better to use CGI.pm rather than a hand-rolled parser based upon cgi-lib.pm (see use CGI or die;).
In reply to Re: Macs and File Uploads
by rob_au
in thread Macs and File Uploads
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |