Results 1 to 2 of 2

Thread: File upload works differently in IE and FireFox

  1. #1
    Join Date
    Oct 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default File upload works differently in IE and FireFox

    Hi,

    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?

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Try adding a readonly="readonly" attribute to the file input. I'm not sure it'll work, but it's worth a shot.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •