Menu

Max upload size

ced64k
2017-12-03
2017-12-13
  • ced64k

    ced64k - 2017-12-03

    Hi,

    I have a local WordPress running fine with WinNMP but I'm unable to edit the max upload size, it stays at only 1M.

    I edited post_max_size and upload_max_filesize in C:\WinNMP\conf\php.ini and restarted php-cgi.

    Any idea ? Thank you.

     
    • WTriple

      WTriple - 2017-12-04

      Yes, in order to change the upload max size, you need to edit both php.ini and nginx.conf , both located in c:\WinNMP\conf
      - in php.ini: set upload_max_filesize and post_max_size
      - in nginx.conf: set client_max_body_size

      restart nginx, then go to phpinfo() and check if the new values are applied. Also check if 'Loaded Configuration File' matches the php.ini file you just edited.

       

      Last edit: WTriple 2017-12-13
  • ced64k

    ced64k - 2017-12-04

    Hi. Thank you. Everything seem to be fine in phpinfo() so I think my problem is WordPress related, I'll check.

    Edit: It was the max size in WordPress multisite. Sorry for inconvenience :-)

     

    Last edit: ced64k 2017-12-04
    • WTriple

      WTriple - 2017-12-13

      You also need to set in nginx.conf client_max_body_size

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.