This is the form I'm using to send the file
<form id="form_converter" enctype="multipart/form-data">
<input type="file" name="arquivo" />
<input type="submit" value="Enviar" />
</form>
$(document).on("submit", "#form_converter", function(){
var dados = $('#form_converter').serialize();
jQuery.ajax({
type: "POST",
url: "sys/cv_unique_file.php",
data: dados,
success: function(data)
{
console.log(data);
}
});
return false;
});
And in my PHP
if(isset($_FILES)){
print_r($_FILES);
}
And I only get an empty array Array ()
, already check the permissions of the folders and everything is 777