shai1 Posted September 15, 2008 Share Posted September 15, 2008 Is there a true cap to the max size of a file upload? I have a file that is just a shade over 15M and I have changed the upload_max_filesize statement in my php.ini file from 15M to 20M, after a restart of my webserver, I still have problem getting the file to upload. There is no specific error message being returned, but the file never makes it to the upload directory. I'm wondering if 15M is the largest file php will ever support regardless of the setting being larger then that? I've uploaded many other files with no issue, the only thing I can figure is the 15M+ size of the file. Any insight to my issue would be wonderful! Thanks, Dave Quote Link to comment https://forums.phpfreaks.com/topic/124387-upload_max_filesize/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 15, 2008 Share Posted September 15, 2008 Did you check using a phpinfo(); statement what the actual value for upload_max_filesize is to make sure it was changed? The upload section in the php manual lists everything that limits an upload. Have you read the upload section of the php manual? I suspect that your problem is the post_max_size setting is being exceeded - If the size of post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty.Which needs to be tested for in addition to the normal upload errors. Quote Link to comment https://forums.phpfreaks.com/topic/124387-upload_max_filesize/#findComment-642379 Share on other sites More sharing options...
shai1 Posted September 17, 2008 Author Share Posted September 17, 2008 Yeah, I did load the phpinfo() and it does appear in there with my new size, but the file still fails when i try and upload. Quote Link to comment https://forums.phpfreaks.com/topic/124387-upload_max_filesize/#findComment-643861 Share on other sites More sharing options...
shai1 Posted September 17, 2008 Author Share Posted September 17, 2008 I forgot to mention that I had also increased the size of the post_max_size as well when I increased the upload_max_filesize. Both are showing the updates when I load phpinfo(). Quote Link to comment https://forums.phpfreaks.com/topic/124387-upload_max_filesize/#findComment-643984 Share on other sites More sharing options...
PFMaBiSmAd Posted September 17, 2008 Share Posted September 17, 2008 I recommend posting your form and your form processing code. Quote Link to comment https://forums.phpfreaks.com/topic/124387-upload_max_filesize/#findComment-644065 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.