4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by mehdi991
0

Sorry, but no. There is no way to access the image data.

The way to think about it is to remember the XMLHTTP sends well.. XML. Anything you want to send must be text encoded. Since there is no way to access a text representation of an image (or a file, or any other binary object) in javascript, then there is no way to send an image.

Sites that look like they are doing so usually use a small flash object with a fail over to using, as you said, a hidden frame.

see swfupload.

Edited by bnieland: n/a

0

Uploading via XHR is not possible yet.
Use a flash or Java uploader.
Many websites make clever use of frames and AJAX to upload files and show progress bar....
And that's good!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.