diff options
authorLoic Dachary <>2011-10-08 11:27:35 +0200
committerLoic Dachary <>2011-10-08 11:27:35 +0200
commit38fe6a669b4fa44eb791aae87cc7776aa4b44e73 (patch)
parent2d66c0d00b18e93dcf7bf80bdb4e581bd654de37 (diff)
in a nutshell : deal with it, it won't go away The original plan was to just have the filename. Unfortunately, it turns out that if you do that, there are certain sites that break, because they expect the path (and they expect a Windows path, no less). This is why Opera and IE8 return a fake path -- not because HTML5 says to do it. In fact I made HTML5 say it because they were doing it.
1 files changed, 4 insertions, 1 deletions
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 955d408..964af78 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -186,7 +186,10 @@
$("input[type='file']", element).change(function() {
- $("input[name='ignored']", element).val($(this).val());
+ //
+ // in a nutshell : deal with it, it won't go away
+ var path = $(this).val().replace("C:\\fakepath\\","")
+ $("input[name='ignored']", element).val(path);