Friday 15 February 2013

How to get the path of image uploaded in HTML5 FileReader -


I used the following method to see the upload route, but it does not work.

  reader.onload = function (e) {console.log (e.target); }   

But this does not show the actual path

Technically, you can not find the real path of the image Trying to read it because it has a safety concern.

Although there are solutions for a specific browser, but they can not be trusted! Apart from these, the new HTML5 specification indicates that the browser is compatible with Windows compatible fake pad by & lt; Input type = "file" & gt; In the field, backward compatibility reasons will be required to feed apparently.

I am trying to understand the matter of using your requirement because you only need the material to handle uploaded files and not the actual path of the file.

No comments:

Post a Comment