Open vtomberg opened 8 years ago
We should probably start with setting that within the configuration fine of the backend, this should correspond with what the modules that handle upload would be glad to accept and would not require any additional special code.
Later on it could be checked how could that be stored somewhere to make the check. One possibility would be to allow file to be uploaded, then check the size and respond with an error if limit is exceeded.
There is also a possibility to do that on the font-end side when using FormAPI. This one could be easily configurable by admin and requested as part of some general configuration options set from the server side (although the backend check would also be needed).
Forgot to reference the issue in commit, this one deals with the front-end part of the problem: https://github.com/learning-layers/timeliner-client/commit/0cf0185a58ba2b5ac2294b81e89ac1e5629fc991
The upload size limit is configurable and defaults to 20 MB (should be more than enough).
To create an option for admin, which allows to regulate maximum upload size for one document. Possibility to set limits for a summary size of project attachments. Possibility in future to change the size, e.g. for paid account