Closed GoogleCodeExporter closed 9 years ago
Many options. Have you seen:
http://www.html5rocks.com/en/tutorials/file/dndfiles/
Original comment by ericbide...@html5rocks.com
on 3 Feb 2012 at 11:01
[deleted comment]
Thanks for the suggestion. I just tried it. And immediately bumped into a
problem.
The <input type="file"> field cannot return full path to a file. So if I have
an image file with the following path "samples/image1.jpg" and the user picks
it, I cannot get the full path to the file. Which means the reader can't load
it.
Browsing for a file returns the files array. This array should contain the full
file path, but unfortunately I can't access this information.
When I access the files[0].name property, result is "image1.jpg". Directory is
missing. Should return "samples/image1.jpg". File reader cannot read a file
without the proper path.
The mozFullPath property contains the full path when I watch it in debugger
(FireBug). But when I access it from the code, files[0].mozFullPath returns an
empty string. No luck again.
Original comment by zex2...@gmail.com
on 11 Feb 2012 at 12:32
Original issue reported on code.google.com by
zex2...@gmail.com
on 3 Jan 2012 at 12:17