Following Problem:
I have a form like this:
<form enctype="multipart/form-data" action="upload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1572864">
Send this file: <input name="userfile" type="file"><br>
<input type="submit" value="Upload">
and an upload.php like this:
$uploaddir = 'uploads';
if($FILES[$userfile]['error'] == 2) die('File too large!');
else move_uploaded_file($FILES[$userfile]['tmp_name'],$uploaddir.'/'.$_FILES[$userfile]['name']);
If i try to upload a file below the MAX_FILE_SIZE value, my script moves the file to the place where it should be.
If i try to upload a file larger than 1,5 MB but smaller than 8 MB, my script tells me "File too large!".
But if i try to upload a file larger than 8 MB, my script does not want to fill the array $_FILES[$userfile].
I tried to play with the values from the php.ini:
max_execution_time = 30
memory_limit = 8M
upload_max_filesize = 2M
But the increase neither of max_execution_time nor memory_limit brings me to the designated result.
Any ideas?