George,

Just set the 'enctype' attribute of the form as usual:
<form id='my_form' action='x.php' method='POST' 
enctype='multipart/form-data'>...</form>

$("#my_form").ajaxForm({"dataType": "...", "success": onFormSubmitSuccess});

Rob


> Dear devs,

I am using the JQuery forms plugin and I have a problem. I would like
to post a form that containse a file, ie I have to use
enctype="multipart/form-data". How can I set this up when using
ajaxForm()?

Is there an example how you can upload files using ajaxForm()?

thanks in advance for any help,
George.

-- 
http: //blog.gmosx.com
http: //cull.gr
http: //nitroproject.org
http: //www.joy.gr

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


<

---------- Original Message ----------

FROM:      "George Moschovitis" <[EMAIL PROTECTED]>
TO:        discuss@jquery.com
DATE:      Thu, 15 Mar 2007 18:12:31 +0200

SUBJECT:   [jQuery] JQuery Form plugin

Dear devs,

I am using the JQuery forms plugin and I have a problem. I would like
to post a form that containse a file, ie I have to use
enctype="multipart/form-data". How can I set this up when using
ajaxForm()?

Is there an example how you can upload files using ajaxForm()?

thanks in advance for any help,
George.

-- 
http: //blog.gmosx.com
http: //cull.gr
http: //nitroproject.org
http: //www.joy.gr

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to