R
Rafal\(sxat\)
Hello
how read content of file selected in form <input type=file...
Rf
how read content of file selected in form <input type=file...
Rf
For security reasons, it's not possible to do that with JavaScript on
the client.
Conrad said:For security reasons,
the client. You can read the file contents on the server after the form
has been submitted.
it's not possible to do that with JavaScript on
It's not possible, but not for security reasons. Arun took over
FIleUpload spec but doesn't seem to be working on it.
Gecko has FileList interface, but the problem is that it is not async.
An async read would be more ideal (because it avoids problems with
blocking).
Conrad said:Replying to myself (again):
Arun = Mozilla's Arun Ranganathan
FileList draft:
<http://dev.w3.org/2006/webapi/FileUpload/publish/FileUpload.xhtml>
Good detective work!
The problem with blocking is that there may be an issue with reading the
file. The server tipped over, or maybe the file gets locked up by
windows (I've never had *that* happen .
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.