lindsaycb
01-14-2011, 06:19 PM
I took over someone else's PHP/MySQL webapp so I'm trying to understand how/why he did things.
We have an upload form for a syllabus. He had the limit at 2 MB. I have upped that to 5 MB. Here's the code.
<form enctype="multipart/form-data" action="uploadSyllabus.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="5242880" />
Send this file: <input name="userfile" type="file" id="userfile" />
<input type="submit" value=" Upload File " />
</form>
However, no files over the size of 2 MB will upload now. I have looked through the uploadSyllabus.php and there's no mention of the 2 MB limit (besides error messages).
The file is uploaded to our web server and the name is stored in the database. Is there a way to limit the upload amount somewhere else? I really figured this would be an easy change but it's proving to me otherwise!
We have an upload form for a syllabus. He had the limit at 2 MB. I have upped that to 5 MB. Here's the code.
<form enctype="multipart/form-data" action="uploadSyllabus.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="5242880" />
Send this file: <input name="userfile" type="file" id="userfile" />
<input type="submit" value=" Upload File " />
</form>
However, no files over the size of 2 MB will upload now. I have looked through the uploadSyllabus.php and there's no mention of the 2 MB limit (besides error messages).
The file is uploaded to our web server and the name is stored in the database. Is there a way to limit the upload amount somewhere else? I really figured this would be an easy change but it's proving to me otherwise!