home of clan [tv]
You are not logged in.
Do you have any examples of using HTTP_REQUEST to upload files? I'm trying to create a gmail kind of image upload thing and can't seem to find any good examples.
any help would be appreciated...
actually... this is something I just had to deal with. The trick is that it's not AJaX in the strict sense. Meaning, XMLHttpRequest can't do file upload. So what you actually have to do is load your upload field into an iframe. The fun part from there is that iframes don't give you the easy to work with response that XMLHttpRequest. So you need to construct the upload in a way that you can parse basically a plain text response from your upload handler.
There are some scripts out there that pass the upload thru a flash object so the upload progress can be read tho... but they are all pretty ugly. I'll send you what I came up with, which if frankly pretty hackish.