Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Can’t upload images – upload_max_filesize error, but image doesn’t exceed max

Discussion in 'Misc WordPress Requests' started by ejwheelock, Nov 13, 2017.

  1. ejwheelock

    Guest

    Can’t upload images – upload_max_filesize error, but image doesn’t exceed max, by ejwheelock

    I just created my first WordPress site on my home server (which acts as remote server). I haven’t been able to upload any images to my site. At all. Every time I try, I get the error:


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

    The funny thing is, when I first received this error, I went and changed all the php.ini files I could find to say:
    upload_max_filesize = 64M
    Not only that, but the Upload New Media page on my Dashboard specifically states:


    Maximum upload file size: 64 MB.

    Why would I get that error, if it’s not true, even according to WordPress?
    I’ve been trying to find the answer to this for weeks. I’ve updated the php.ini, the wp-config file. phpinfo() checks out just fine. I restart all services after every change I try. I don’t see any errors in the error logs. I’ve tried big and small images – both jpg and png. I’ve tried numerous ways to upload – to the library, and with theme customizations. Everything gives me the same d*** error. I don’t even know if it’s a WordPress issue! Here is my setup:

    Ubuntu Server 16.04
    Nginx 1.12.1
    PHP 7.0.22
    Using php-fpm if that makes a difference

    Can’t upload images – upload_max_filesize error, but image doesn’t exceed max
     
    #1

Share This Page

Web Hosting