Limit Maximum Upload File Size Allowed

Created by Martin Parkinson, Modified on Sun, 2 Jul, 2023 at 3:14 PM by Martin Parkinson

From version 1.00.253 or later, it is possible to restrict the system and limit the maximum file size which can be uploaded into the database.

This can be useful to prevent users dragging overly large files into the system by accident, or to prevent excessive storage use.


Example:

In the example below the system has been set to allow a maximum file size of 2mB


Attempting to import a file larger than 2mB will display the warning. At this point the user will need to compress the file before storing it. (e.g. use ZIP to make a smaller copy)


System Setup

The feature is activated with an environment variable called MAXFILESIZE
Simply set this to the maximum allowed size (in mB)

e.g.

ENV("MAXFILESIZE")="2"


To activate the feature, please contact Influence in order to set the environment variable.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article