Re: basic Ajax file uploading

2006-10-24 Thread Brian French
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

basic Ajax file uploading

2006-10-23 Thread Brian French
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;

Re: basic Ajax file uploading

2006-10-23 Thread nate
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.