I see. Is there a way that I can still use ajax post, but submit that to an iframe? Or is the only way to do it is by using a normal form?
On May 12, 8:44 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > You can't actually do file upload via AJAX, it's a security "feature", > it can be "faked" though. > > Try this plugin: > http://plugins.jquery.com/project/form > > Karl Rudd > > On Tue, May 13, 2008 at 1:38 PM, hubbs <[EMAIL PROTECTED]> wrote: > > > I have set up a form that uses the $.ajax function using POST. Part > > of my form is an image upload dialog, using the standard file upload > > input box. The problem is, the upload is not working, and I think it > > has to do with the encoding. When I upload it with ajax, it just > > sends through the path to the file on my local computer. But if I use > > normal form POST, without ajax, it will send the image contents > > through (I can see all the data that was sent, with ajax it is not > > there.) So, what I need to know is, for something like this, so I > > need to be encoding that somehow?