internet explorer - HTML Form FILE input behavior in Chrome vs. IE -


if try filename value html input object in ie returns full path , filename, in chrome returns base filename. there way make return full path , filename regardless of browser, or have jump on jquery that? god almighty hate stupid non-standard web "standards".

code example:

<input type="file" name="fn" id="fn"/> 

click on selection button in ie , navigate path "\server123\apps\folder1\setup.exe" , result shows in form, , gets processed in [submit] handler event, "\server123\apps\folder1\setup.exe". however, running same steps in chrome 22.x 28.x, displays "setup.exe" , hands through [submit] handler well. there way make handle full path , filename regardless of browser?

chrome scrubs out path information security reasons. there no way access path information.

fileinput.onchange = function(e) {   console.log(e.target.value); // c:\fakepath } 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -