Geoffrey Emery
Tech Goodness

Uploading File Fails in IE8 due to Security Fix for INPUT type=file

April 9, 2009 22:42 by gemery

For IE8 closed off the information-disclosure problem whereby JavaScript can read the .value attribute of a file upload control and determine the full local pathname, which might include information like the user’s name, profile directory, etc. Specifically, they changed from ALLOW to DENY for the Internet Zone “Include local directory path when uploading files” security setting. So, rather than sending the filename “C:\users\bill\desktop\temp\upload.txt”, instead it just send just “upload.txt”.
..

Over the last few months, I’ve run into a significant number of sites (e.g. education products, several movie sharing sites, etc) and devices (e.g. popular home routers) that this security improvement breaks, because the sites use JavaScript to attempt to parse the filename (e.g. to determine its extension). In many cases, the script will attempt to get the indexOf() the last REVERSE_SOLIDUS (\) character in the string, and since we now return only the leaf filename, those scripts will fail to parse the string and complain to the user.
..

Read more: http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx


Related posts

Comments

November 1. 2009 00:04

fast personal loans

I just hope to have understood this the way it was meant

fast personal loans

November 9. 2009 12:44

fast payday loans

Do you make money out of this blog? just curious

fast payday loans

November 10. 2009 03:00

cash loans

Nice resource. rss feed added

cash loans

November 10. 2009 04:51

debt consolidation loan

Do you accept guest posts? I would love to write couple articles here.
I was wondering what is up with that weird gravatar??? I know 5am is early and I'm not looking my best at that hour, but I hope I don't look like this! I might however make that face if I'm asked to do 100 pushups. lol

debt consolidation loan

November 11. 2009 01:16

buy electronic cigarette

You may have not intended to do so, but I think you have managed to express the state of mind that a lot of people are in. The sense of wanting to help, but not knowing how or where, is something a lot of us are going through.

buy electronic cigarette

Comments are closed