PHP File Upload Size Issues

Ran into a problem when I was maintaining a customer's site today. They wanted to upload 10 - 20 MB movies as attachments to their Drupal blog posts. The standard limit set in Drupal is 2MB. I changed the setting to no avail. There was a note at the bottom stating that my PHP settings limited the upload to 4MB. So I did a search and come up with this post. So I changed my upload_max_filesize setting to "20M" this still did not work. The problem is that PHP also limits the post size and my default config limited post size to 8MB. So to increase the PHP upload limit one must check both the upload_max_filesize and the post_max_size settings are setup to allow the size of uploads they want to do.

So my new settings became:

post_max_size = 20M

...

upload_max_filesize = 20M

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Welcome

Welcome to the 'Java Performance Professional' group

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options