[form plugin] file upload, get preformated text back instead of plain html
Hi people,
I have a div in which I load a form with ajax.
I am using jquery form plugin to post the form to my php action, which sends back html fragment. This way I refresh the content of the div with this html "code".
With no file upload in the form, i receive what I want : a plain html content
xhr: [object XMLHttpRequest] and the response is in plain html :
- <p>test</p>
When I add a file upload, i receive preformated text :
xhr: [object Object] , and the response is formated
<pre><p>test</p></p></pre>
I know the behaviour of the form plugin is different when finding a file input.
Is there a solution to my problem ?
Can I prevent the plugin to preformat the text ?
I tried to change the dataType from null into 'html', 'text', 'xml', with no change.
By the way, thanks to the author of this plugin which is great !
Kimaidou