gristlabs_grist-core/app
Alex Hall 64a5c79dbc (core) Limit total attachment file size per document
Summary:
- Add a new parameter `Features.baseMaxAttachmentsBytesPerDocument` and set it to 1GB for the free team product.
- Add a method to DocStorage to calculate the total size of existing and used attachments.
- Add a migration to DocStorage adding an index to make the query in the above method fast.
- Check in ActiveDoc if uploading attachment(s) would exceed the product limit on that document.

Test Plan: Added test in `limits.ts` testing enforcement of the attachment limit.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3374
2022-04-14 16:33:09 +02:00
..
client (core) Implementing search on raw data view 2022-04-13 20:44:37 +02:00
common (core) Limit total attachment file size per document 2022-04-14 16:33:09 +02:00
gen-server (core) Limit total attachment file size per document 2022-04-14 16:33:09 +02:00
plugin (core) Adding onNewRecord event for custom widgets 2022-04-12 16:51:16 +02:00
server (core) Limit total attachment file size per document 2022-04-14 16:33:09 +02:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00