Uploads & Media
Overview
The Uploads & Media group sets the largest file a visitor can upload through a File or Image field. A field can set its own limit instead. The group also decides whether file names may contain only basic characters, and how much one visitor may upload in an hour. Change it when visitors need to send larger files, when you want smaller ones, or when one visitor fills your disk with uploads.
Go to Stores → Configuration → MageMe Extensions → WebForms and expand Uploads & Media. Sizes are in kilobytes (KB): 1000 KB is about 1 MB.
Settings
| Setting | Scope | Default | Description |
|---|---|---|---|
| File Upload Limit (KB) | Store View | 5000 | Maximum size of a file submitted through a File Upload field. |
| Image Upload Limit (KB) | Store View | 1000 | Maximum size of an image submitted through an Image Upload field. |
| Thumbnail Size Limit (Megapixels) | Global | 25 | A larger picture is still accepted but is shown as an icon instead of a thumbnail; making a thumbnail takes about 9 MB of memory per megapixel of the picture. |
| Upload Resize Limit (Megapixels) | Global | 50 | A larger picture is saved as uploaded, without being resized to the size set in its field; resizing takes about 9 MB of memory per megapixel of the picture, once, when it is uploaded. |
| Restrict Uploaded File Names | Global | No | Rejects uploaded files whose name contains characters other than letters, digits, spaces, dashes, underscores and dots. |
| Uploads per Visitor per Hour | Global | 50 | How many files one visitor may upload to forms on the storefront and through GraphQL in an hour. A signed-in customer is counted by account, a guest by IP address; behind a proxy or CDN the web server must pass the visitor's real address. 0 means no limit. |
| Upload Volume per Visitor per Hour (MB) | Global | 250 | How many megabytes one visitor may upload in an hour, counted the same way. 0 means no limit. |
Notes
- File Upload Limit (KB) applies to File fields and Image Upload Limit (KB) to Image fields. A field can set its own Allowed File Size in the form builder; that value wins for that field. See File field and Image field.
- Restrict Uploaded File Names accepts only Latin letters (A to Z, in upper or lower case), digits, spaces, dashes, underscores and
dots. A name with accented or non-Latin letters, such as
résumé.pdf, is rejected with a message that the name has non-Latin characters. It applies to File and Image fields and has one value for all store views.
Uploads per visitor. Uploads per Visitor per Hour (50 by default) and Upload Volume per Visitor per Hour
(MB) (250 MB by default) cap what one visitor can upload to your forms in an hour, through the drop area of a
File or Image field on the storefront and through GraphQL. A field with Enable Dropzone off sends its file
together with the form, and that file isn't counted. A signed-in customer is counted by account, a guest by IP address. Past either limit, the next file is
refused with "You have reached the upload limit. Please try again later." Enter 0 to switch a limit off. Raise
them if your customers send many files at once, for example photos of a whole room. If your store runs behind a
proxy or a CDN, your web server must pass on each visitor's real IP address; otherwise all guests count as one.
Large images. These limits refuse a file that is too big; they don't make it smaller. To shrink large pictures as they arrive, turn on Resize Uploaded Image on the Image field. See Image field.
Very large pictures. Two settings protect your server's memory from pictures with a huge number of pixels. They have one value for all store views.
- Thumbnail Size Limit (Megapixels), 25 by default, from 1 to 50. A larger picture is still accepted, but it shows as a file icon instead of a preview. Making a preview takes about 9 MB of memory per megapixel.
- Upload Resize Limit (Megapixels), 50 by default, from 1 to 120. A larger picture is saved as uploaded, without being made smaller by Resize Uploaded Image.
Old files. This group deletes nothing. A form's Enable Periodic Files Cleanup deletes the uploaded files of its old submissions and keeps the submissions; see Retention and deletion. Files attached to replies are deleted by Delete Old Reply Attachments in Settings: Submissions & Privacy.
If uploads fail, see File upload fails. To learn who can open uploaded files, see Uploaded files.