Mrs. Mani
Mrs. Mani

Reputation: 31

laravel payload too large in production

I am getting error 413 in my production server laravel. It is saying "payload too large". The code is working in xampp. my website is in a subdomain of a domain. How do I correct this error?

Upvotes: 1

Views: 982

Answers (1)

Abdulla Nilam
Abdulla Nilam

Reputation: 38652

Set client_max_body_size will sort this issue

If Ngnix

server {
    client_max_body_size 100M;
    ...
}

If Apache (in .htaccess)

 LimitRequestBody 104857600

In addition post_max_size

Upvotes: 1

Related Questions