This assumes you have no need to associate the file upload with the field name (ie single file upload in the whole form). You could arrange your script to be a 404 handler and pass the information needed in url instead (http://example.com/myFile_sessionID). In other words put the "field name" (myFile) as part of the action url instead of the real field name.
# example only, need proper sanitization here in real life my ($name)=$ENV{REQUEST_URI}=~/(\w+)$/; my @param=split /_/,$name;
You also need to change REQUEST_METHOD in your script to REDIRECT_REQUEST_METHOD.
In reply to Re: cgi and upload_hook
by daitau
in thread cgi and upload_hook
by qbxk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |