Skip to content

Instantly share code, notes, and snippets.

@tiller1010
Last active January 27, 2025 17:06
Show Gist options
  • Select an option

  • Save tiller1010/b9831aecc48ace2594c19e588982f0d4 to your computer and use it in GitHub Desktop.

Select an option

Save tiller1010/b9831aecc48ace2594c19e588982f0d4 to your computer and use it in GitHub Desktop.
Filesize Configs

Filesize Configs

PHP

  • upload_max_filesize - The maximum size of an uploaded file.
  • post_max_size - The maximum size of POST data that PHP will accept.
  • memory_limit - The maximum amount of memory a script may consume.
  • max_execution_time - The maximum time in seconds a script is allowed to run before it is terminated by the parser.

Nginx

  • http { client_max_body_size } - The maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client.

SilverStripe

  • Upload_Validator->setAllowedMaxFileSize - The maximum size of an uploaded file in SilverStripe CMS. This can be set in a EditableFileField.
  • maximum_email_attachment_size - The maximum size of an email attachment in SilverStripe CMS. This is set in the Email class.
---
Name: UserDefinedFormConfig
---
SilverStripe\UserForms\Control\UserDefinedFormController:
  maximum_email_attachment_size: 8M
  • max_thumbnail_bytes - The maximum bytes allowed to render thumbnails in the asset admin area.
---
Name: ThumbnailGenerator_max_thumbnail_bytes
---
SilverStripe\AssetAdmin\Model\ThumbnailGenerator:
  max_thumbnail_bytes: 16000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment