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