Limit size for upload

Hey, I'm using an upload widget on Traditional Web and I want to limit the size to upload. How to limit that?

mvp_badge
MVP
Solution

Hi Jason,

Actually, technically speaking, the upload file size is already limited to 250gb, see here.

But your question is probably that you want to define a smaller limit. There is a document that describes you can add a shared configuration using the Factory Configuration application, see here. You need to associate the shared configuration with your module.

Then there is this discussion that explains how you can use BinaryDataSize to validate the file size of the file selected in the upload widget.

Regards,

Daniel


Thankyou so much for the answer Daniel

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.