[jQuery] [jQuery.forms] problem when uploading files

[jQuery] [jQuery.forms] problem when uploading files


Hi,
I'm trying to submit a form using Ajax and this plugin. The form has
some simple fields, and a field of type "file". When I do not select
any file, everything works correctly. Whenever I select a file, the
success function isn't called, plus the POST do not appear in the
"console" of Firebug. It appears in the net tab though, but POST
fields are *empty* ! The PHP script called also gets nothing in $_POST
nor $_FILES array.
I'm wondering whats wrong. I have correctly set enctype to "multipart/
form-data", and I also set MAX_FILE_SIZE to needed size. What could be
wrong ? And is there any way to debug this correctly ?
I'm using this to prepare the form for AJAX:
$('form.details').ajaxForm( {dataType:'json', url: '/index.php?
ajax=1&action=edit_kad_image&rand='+Math.random(), success:
kad_return } );
Any help/hint appreciated ! ;)