I am having difficulty uploading some large files using php/html form. The code has worked for file sizes up to 23MB. When I've tried a 50MB file, i get a blank page instead of my confirmation echo statement. My web research indicates that I needed to alter some php directives either in an .htaccess file or php.ini. I have edited my php.ini file and included all the relevant directives I could find. Here are the newly added lines. I have confirmed the changes with a phpinfo() request. This problem was posted here but it doesn't appear as if any solution was reached.
I don't even think max_execution_t ime is even relevant here, but it has been mentioned on several web pages.
Relevant form code:[code=text] <form enctype="multip art/form-data" method="POST" action="uploade r.php">
Choose a file to upload: <input name="userfile" type="file" /><br />
<input type="submit" value="Upload File" /><br />
</form>[/code]
Relevant script code:[code=text]error_reporting (-1);
if (move_uploaded_ file($_FILES['userfile']['tmp_name'], 'uploads/FreeAudio.mp3') )
echo "File is valid, and was successfully uploaded.\n";
else echo "Error when uploading file\n";[/code]
What am I missing?
memory_limit = 210M
post_max_size = 200M
upload_max_file size = 190M
max_input_time = 2400
max_execution_t ime = 2400
post_max_size = 200M
upload_max_file size = 190M
max_input_time = 2400
max_execution_t ime = 2400
Relevant form code:[code=text] <form enctype="multip art/form-data" method="POST" action="uploade r.php">
Choose a file to upload: <input name="userfile" type="file" /><br />
<input type="submit" value="Upload File" /><br />
</form>[/code]
Relevant script code:[code=text]error_reporting (-1);
if (move_uploaded_ file($_FILES['userfile']['tmp_name'], 'uploads/FreeAudio.mp3') )
echo "File is valid, and was successfully uploaded.\n";
else echo "Error when uploading file\n";[/code]
What am I missing?
Comment