Note when you change upload_max_filesize and post_max_filesize but still can not upload large file

If your site using nginx and php-fpm, update value of upload_max_filesize and post_max_filesize in php is not enough, we need to update value in nginx also.

  1. Update file main.conf
  2. Change client_max_body_size 512M; to client_max_body_size 3G;
  3. Save and test nginx nginx-sp -t
  4. If you got successful message from the test command above, restart nginx service nginx-sp restart

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: