Hi,
I wanted to change the ajax file to accept a image file when I give the answer, but the code makes the image a $_POST var instead of a $_FILE after going to the AJAX script. Can someone help me?
The code I have added to the answer form :
'tags' => 'method="post" enctype="multipart/form-data" action="'.qa_self_html().'" name="a_form" ',
...
'foto' => array(
'label'=> 'Imagem',
'type' => 'custom',
'html' => '<input type="hidden" name="MAX_FILE_SIZE" value="10000000" /><input name="imgAns" type="file" id="imgAns"/>'
),