Darren Riches
Darren Riches

Reputation: 149

Difference in upload limit on Wordpress and upload_max_filesize value in php.ini

I am having trouble uploading large images to Wordpress. When I try to add an image there is the message:

Maximum upload file size: 2 MB

When I upload an image over 2mb I get the error message:

The uploaded file exceeds the upload_max_filesize directive in php.ini.

I have checked the values by using phpinfo() and I can see that upload_max_filesize is set at 40M.

How can there be a difference? What else do I need to check?

Upvotes: 0

Views: 354

Answers (1)

red-charlt
red-charlt

Reputation: 15

A couple of articles which might help you the first and the second.

Why are you uploading large images? Are they for dsiplay on a page/post? Perhaps it would be better to reduce the file size prior to uploading.

Upvotes: 0

Related Questions