I am trying to upload file using strapi upload api. I get 413 error

If you are using Nginx, follow these steps:

Open the configuration file for your Strapi server:

sudo nano /etc/nginx/sites-available/your_strapi_server_conf

Inside the configuration, set the following:

server {
    # others settings...

    client_max_body_size 10M;

    # others settings...
}

After making these changes, restart the server:

sudo service nginx restart

And its all :slight_smile:

1 Like