File Uploads Size
OpenBoxes supports configurable size limits. You might lower the maxFileSize for security reasons
i.e. to prevent DDoS attacks. You might increase maxFileSize
to attach high-resolution images
and documents (say, to a product or shipment) or to upload large datasets through the data import
feature.
Defaults¶
The default max file size is 2097152 (~2MB).
grails:
controllers:
upload:
maxFileSize: 2097152 # 2MB max file size
maxRequestSize: 2097152 # 2MB max request size
Overriding¶
If you ever need to increase or decrease the max file size just calculate the bytes for the desired max size.
Tip
In case it's not clear, the unit of measure conversion formula for converting from MB to bytes looks like this.
If you wanted to increase the size to 10MB If you want to allow GBs, then multiply by another 1024 (1024 MB/GB)