163
rated 0 times
[
169]
[
6]
/ answers: 1 / hits: 22832
/ 15 Years ago, tue, june 2, 2009, 12:00:00
In Firefox 3 it is possible to access the contents of a <input type=file>
element as in the following.
Assume a form with the following element:
<input type=file id=myinput>
Now the data of the file selected can be accessed with:
// Get the file's data as a data: URL
document.getElementById('myinput').files[0].getAsDataURL()
Is there a cross-browser way to accomplish the same thing?
Firefox documentation for this feature:
More From » cross-browser