I'm adding an upload file to my form, but for some reason it doesn't work.
Here is some of my code:
....
<form method = \"POST\" action = \"$_SERVER[PHP_SELF]\" enctype=\"multipart/form-data\">
....
<tr>
<td>Upload the image of the anime:
<br>max. size 50 kb</br>
$filewarrning
</td>
<td>
<input type='hidden' name='MAX_FILE_SIZE' value='51200'>
<input type='file' name='fileupload'>
</td>
</tr>
....
When I click the submit button and try to access the info through $FILES
$display_block .=$_FILES['fileupload']['name'];
When I tried echo var_dump($_FILES);
It returned array(0) { }
So by the looks of it nothing is even stored in the array.
File I'm trying ot upload is only few bytes.
What's going on?
I checked php.ini and fileupload is turned on in it.
Thx.