Jump to content

upload_max_filesize


Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/124387-upload_max_filesize/
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/124387-upload_max_filesize/#findComment-642379
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.