Thanks alot nate! Is there any example of this anywhere?
nate wrote:
how do i get it to properly upload the file?
You don't. Because of the way the XHR transport layer works, you can't
use it to send actual file data. What you *can* do is have the upload
form POST to an
I have a form which is submitted via ajax. I have a field in this form
which needs to be a file upload. below is the smippet of code. it's only
sending me the local location of the file and not the actual file data.
how do i get it to properly upload the file?
form onsubmit=return false;
how do i get it to properly upload the file?
You don't. Because of the way the XHR transport layer works, you can't
use it to send actual file data. What you *can* do is have the upload
form POST to an iframe, and use a separate set of asynchronous requests
to monitor it's progress.