[SOLVED]$_FILES isn't picking up my uploaded file.
Posted: Fri Mar 02, 2007 8:35 am
I have the following form:
But once the submittion has been made I only have the following data in $_FILES['mailAttach']:
Array ( [mailAttach] => Array ( [name] => pageant.exe [type] => [tmp_name] => [error] => 2 [size] => 0 ) )
Any ideas as to what's gone wrong. I can't find any error codes to explain "[error] => 2"
Code: Select all
<form method = 'post' action = 'email_new.php' enctype='multipart/form-data'>
<input type='hidden' name='MAX_FILE_SIZE' value='30000'>
<input type = 'file' name = 'mailAttach'>
<input type = 'submit' value = 'Upload'>
</form>
Array ( [mailAttach] => Array ( [name] => pageant.exe [type] => [tmp_name] => [error] => 2 [size] => 0 ) )
Any ideas as to what's gone wrong. I can't find any error codes to explain "[error] => 2"