Jump to content

Upload script: IE vs Firefox


MnilinM

Recommended Posts

So i'm working on a friend's site at work, where i use Firefox.

 

I've got this script lined up to send the name of the file to mySQL, then upload the file.

 

Now, yeah it doesn't totally work yet, but i'm still playing with it (because i'm a newb at php basically).

 

My question pertains to this:

 

When i use firefox, the script only inputs the filename chosen with my type=file input box.

When i use IE, the script inserts the WHOLE PATH (C:\folder\picsetc\yougettheidea.jpg)

 

I made another little script to pour out the contents of the mysql table, and sure enough...

If i use firefox, it'll list: filename.jpg

If i use IE, it'll list: path\filename.jpg

 

Is there something i should include in my script to help IE only put in the filename, and not the path?

Link to comment
https://forums.phpfreaks.com/topic/39796-upload-script-ie-vs-firefox/
Share on other sites

Mostly i'm looking at how the file's name is inserted into mysql.

 

If I use Internet Explorer to put in this information into mysql, then when i later call the image from mysql, i get img src="c:\folder\image.jpg"

 

What i don't get is FireFox does just fine, why doesn't Internet Explorer just send the file name and not the path?

 

I'll worry about the actual upload thing later. Right now, i'd rather get this mySQL thing solved.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.