Wednesday, 5 September 2018

uploading big image for inginx

Following link:

https://stackoverflow.com/questions/26717013/how-to-edit-nginx-conf-to-increase-file-size-upload

/etc/nginx/nginx.conf

Now that you are editing the file you need to add the line into the server block, like so;
server {
    client_max_body_size 500M;

    //other lines...
}
If you are hosting multiple sites add it to the http context like so;
http {
    client_max_body_size 500M;

    //other lines...
}
And also update the upload_max_filesize in your php.ini file so that you can upload files of the same size.

No comments:

Post a Comment