The other day I ran across an issue with the FileStyle jquery plugin. Whenever a new file was chosen, windows and Internet Explorer would put c:\fakepath\ before the filename. Turns out its not FileStyle’s issue – but a security feature of Internet Explorer.
As a quick fix, however, I made the following changes to FileStyle:
BEFORE
1 2 3 4 5 6 | //snip $(self).bind("change", function() { filename.val($(self).val()); }); //snip |
AFTER
1 2 3 4 | $(self).bind("change", function() { var s = $(self).val().replace(/(c:\\)*fakepath/i, ''); filename.val(s); }); |

Thanks, just what I was looking for. Small note: this problem isn’t IE specific, it also occurs in Chrome.
Exact. It is a security configuration in some browsers
Perfect! Thanks!
Thanks a lot, you’ve saved my life