Link to home
Start Free TrialLog in
Avatar of 7thwave
7thwave

asked on

File upload with IE

I have found a script for uploading though your browser, but it only works with Netscape.  I have tried to use the cgi-lib method, but I can not figure out how to assign a specific name to the file.  What is the best way to go about this?  I will also need to send other data besides the file.
Avatar of jhance
jhance

The file upload function doesn't work in IE versions < 4.0 without a add-in module from Microsoft.  It works fine with IE4.0, however.  You can't assign a specific name to the uploaded file in the browser, just the name of the file to upload.  Your receiving cgi-bin program must assign the name.  You can offer the user a name entry textbox to provide a name for your use in storing the file.  If you need to send other data, you can send more than one file or include different <input> items along with the file upload.
Avatar of 7thwave

ASKER

How do you assign a specific name to a file?
I seem to remember that it is not possible to determine the name of the file being uploaded from the 'input file' box of the form. I think this is for security reasons, so that the server can't determine information about the clients PC. This means if you want the uploaded file to have the same name on the server as on the client then you will have to provide another 'input text' box in the form and ask the user to re-enter the filename.

ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial