Form asset 413 Request Entity Too Large #5569
-
Is there a way to change the max file size of an asset that can be uploaded to a form? I would also like to display an error message when the file size is exceeded, how would I approach that? Currently any file size larger than 1mb throws a "413 Request Entity Too Large" page. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe you can configure this in the Not sure if the error message is possible, would have to be done client-side as the request wouldn't get to Laravel/Statamic in order to do that kind of validation. |
Beta Was this translation helpful? Give feedback.
I believe you can configure this in the
php.ini
file on your server (the max file size), here's a potential solution. If you use Laravel Forge, you can edit it from within the UI.Not sure if the error message is possible, would have to be done client-side as the request wouldn't get to Laravel/Statamic in order to do that kind of validation.