This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading a file using the FileUpload control was failing only with IE8

 
Anil Prasad
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my application I store location of local files attached .

Now IE8 has option to include the local directory path for the Internet Zone on the client-side.

Default value is false ,as a result IE7 and IE8 has different behaviour.

IE 7
Content-Disposition: form-data; name="targetFile"; filename="C:\Users\<username>\Desktop\abc.txt"
ยท IE 8
Content-Disposition: form-data; name="targetFile"; filename="abc.txt"

Now , I can not say every user to change IE8 setting.I want to fix it in my code.

Please help me out.

Thanks in advance
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you do something like this:
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a security hole in IE7 that has been fixed. All browsers other than IE do not give you the local file path either.

It's IE7 that's broken, not IE8. You should not be relying upon the local path.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic