Is it possible to use javascript File API to read a file object of unknown id?
I use a custom file upload form in which the code doesn't have an input element. It uses plupload.js API and I can't determine how to access to the contents of file object.
For example if the code had something like the line 1, I could access the contents of file object using the code of line 2
input type="file" id="data"
var finput = document.getElementById("data"); var f = finput.files[0];
I tried something like document.files[0]
but it doesn't work. Do you know something similar?