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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.