javascript - How to get full path of a file with FileUpload Control? -


I am using FileUpload control in my application to upload user information. When I use javascript to load the file, give it control only the name of the file in Mozilla, whereas in IE the whole path is given with this file name. And I want the file name with the full name. Mozilla results - user.doc IE results - /usr/local/user.doc (which I want)

  & lt; Input type = "file" id = "mime" /> & Lt; Input type = "button" onclick = "getFile ();" / & Gt; & Lt; Script type = "text / javascript" & gt; Function getFile () {var fileInput = document.getElementById ("myFile"). Values; Warning (fileInput); } & Lt; / Script & gt;  

Modern browsers do not give this information because it is considered unsafe HTML and Javascript There is no coherent way in it.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -