in reply to cgi and upload_hook
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: cgi and upload_hook
by qbxk (Friar) on May 26, 2006 at 10:28 UTC |