Skip to main content

Increasing Craft's Max Upload File Size

Matt Gray avatar
Written by Matt Gray
Updated over a week ago

If you're seeing an error that looks something like this when uploading an asset...

β€œβ€ is too large.

...then chances are you're hitting Craft's default 16MB upload file limit.

Fortunately, this can be easily raised by either setting your project's `maxUploadFileSize` general config setting or by setting the `CRAFT_MAX_UPLOAD_FILE_SIZE` environment variable.

The value can be set to either an integer size in bytes or the shorthand byte value ending in K (Kilobytes), M (Megabytes), or G (Gigabytes).

Did this answer your question?