Can you post a demo page that shows the problem?
On 10/29/07, leo_ <[EMAIL PROTECTED]> wrote: > > I'm having some problems with this plugin as well... > > I have a simple form, with two text inputs, and a file input. > I use ajaxForm on this form so that it is sent using AJAX. If I don't > select a file in the file input, everything works correctly. The > $_POST array contains all values present in the form. > However, whenever I select a file in the file input, the $_POST array > becomes empty. As if nothing was being posted... I don't get why. I > don't know if this is related to the problem listed here but I guess > it is... > > On 16 oct, 03:13, dgt <[EMAIL PROTECTED]> wrote: > > It was difficult to decide where I should post this. I think the issue > > is with jQuery though, I'm certainly no pro with jQuery, having only a > > few months experience. > > > > Let me explain my problem. > > > > I'm using a form which has a file upload, and also sends standard > > text data. This form I wish to be ajax'ed. > > > > I'm using this code: > > > > $("#node-form").ajaxForm(function(){alert("Thank you for your > > submission!");}); > > > > If I upload an image, I'll still get that message, but the image is > > not uploaded to image.module in drupal (which handles image thumbnail > > creation etc) . In fact, it's not uploaded at all. > > > > If I strip the file field, and use a different content type (Story > > type for those who use Drupal, which just creates a page), it works > > beautifully. I therefore deduced there's something amiss with file > > uploading. How can I send an image with the Form Plugin, so Drupal can > > then generate what it needs. > > > > I have searched the list and the internet, but do not understand what > > to do. Please help if you can. > >