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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.