Files
gristlabs_grist-core/app/server/lib
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
..
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-04-08 16:40:34 -07:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2021-12-07 17:09:58 +02:00
2021-12-07 17:09:58 +02:00
2022-02-19 09:46:49 +00:00
2022-04-01 15:24:19 -07:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-04-01 15:24:19 -07:00
2022-02-19 09:46:49 +00:00
2022-03-12 14:34:46 -08:00
2022-04-08 16:40:34 -07:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-04-01 15:24:19 -07:00
2020-07-21 20:39:10 -04:00
2021-12-07 17:09:58 +02:00
2022-04-08 16:40:34 -07:00
2022-01-13 11:10:17 +01:00