Skip to content
Skip the docs menu

Guide

Fix "413 Request Entity Too Large"

An upload fails with 413 Request Entity Too Large. Raise the site's Largest upload in one click, and the web server and PHP follow together.

Last updated 1 min read3 stepsView as Markdown

What you will end up with

The same upload is accepted, and your app receives the whole file.

Go to the first step
On this page

"413 Request Entity Too Large" means the file, or the whole form, was bigger than the site accepts. The web server refused it before your app saw it.

What you need#

  • A role that may change the site: owner, admin or developer.

Steps#

  1. Check the size. Note how large the file is that failed.

  2. Raise the limit. Open the site's Settings › Limits and easy fixes. Under Fix a common error open 413 Request Entity Too Large and choose a size above your file, or set Largest upload in Limits and choose Check and apply.

    Limits: Largest upload with the web server and PHP values beside itLimits: Largest upload with the web server and PHP values beside it

    The web server's limit, PHP's largest file and PHP's largest form change together, with a little room for the form's other fields, so they never disagree.

  3. Try the upload again. Each part checks its new settings first and keeps the previous ones if anything fails, so the site stays up while the change is applied. The Limits panel shows the new values beside Largest upload.

What you should see#

The same upload is accepted, and your app receives the whole file.

If it goes wrong#

  • Large uploads of 1 GB or more: the page warns you, because each upload is stored on the server while it arrives. Check the free disk space in Monitoring.
  • A Livewire upload still fails: Livewire's own rule allows 12 MB per file. Raise it in your app's Livewire configuration.
  • It still fails with a different error: open Logs › Show me what went wrong.

Still stuck? Get help

Docs menu