View Full Version : File upload works differently in IE and FireFox

10-20-2008, 03:35 PM

I have the input file tag in my html . When I open it in Firefox, it allows me to browse and choose any file to be uploaded. It does not allow me to change the name or path of the file chosen. If I click the file name , it opens the browse dialogue and make me choose the file. This prevents me from choosing any non existing file.

This is the desired behaviour.

When I open the same page in I.E, it allows me to change the name of the file I chose through the browse dialogue and I get an exception when I change the name to some non existing file name.

How can I make IE behave just like Fire Fox?

10-20-2008, 11:20 PM
Try adding a readonly="readonly" attribute to the file input. I'm not sure it'll work, but it's worth a shot.