Clear questions and runnable code
get the best and fastest answer
File Uploading: IE vs. NSby mojobozo (Monk)
|on Nov 13, 2002 at 15:10 UTC||Need Help??|
mojobozo has asked for the
wisdom of the Perl Monks concerning the following question:
I've got a nifty little file upload script that works just fine in IE. It's a wonderful thing. But I just tried it in Netscape and while it IS saving the file to the directory specified, it's also bringing up a "save as..." box so the user can save the upload.cgi to their harddrive. It's doing that instead of loading the HTML code as specified by the &subs which basically load a page saying that the file was uploaded. I've not run into this before and since most of the users I'm going to be dealing with HAVE to use Netscape, it's a problem I need a solution to.
Here's the code I'm using on the .asp page for the form:
And here's the code for the script (not entirely my own and minus the subs containing HTML code):
If anyone could give me some insight as to why Netscape is puking this back up, it would be much appreciated. Thanks!
interj. Slang. Used to express approval or an affirmative response to
something. Sometimes used with up. Source