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.
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).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>
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!



Reply With Quote



Bookmarks