Fix error handling for large files (and endpoints called as non-json)

This commit is contained in:
Dane Everitt 2020-04-06 21:59:14 -07:00
parent 7f2b477538
commit f9878d842c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 21 additions and 12 deletions

View file

@ -172,7 +172,7 @@ return [
| This array includes the MIME filetypes that can be edited via the web.
*/
'files' => [
'max_edit_size' => env('PTERODACTYL_FILES_MAX_EDIT_SIZE', 50000),
'max_edit_size' => env('PTERODACTYL_FILES_MAX_EDIT_SIZE', 1024 * 512),
'editable' => [
'application/json',
'application/javascript',