You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/operate/customize/file-uploads/upload_limits.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ Limiting the maximum size for file uploads can be desirable for a few reasons, e
6
6
## Invenio Configuration
7
7
8
8
`Invenio-Files-REST` provides some [configuration values](https://invenio-files-rest.readthedocs.io/en/latest/configuration.html) that are relevant for limiting file uploads.
9
-
The most relevant ones are `FILES_REST_DEFAULT_MAX_FILE_SIZE` which limits the maximum size for *each* uploaded file (in bytes) and `FILES_REST_DEFAULT_QUOTA_SIZE` which limits the maximum overall size of *all* files uploaded per record (also in bytes).
9
+
The most relevant ones are `RDM_FILES_DEFAULT_MAX_FILE_SIZE` which limits the maximum size for *each* uploaded file (in bytes) and `RDM_FILES_DEFAULT_QUOTA_SIZE` which limits the maximum overall size of *all* files uploaded per record (also in bytes).
10
10
11
-
For instance, consider the case that the maximum file size is set to 10GiB, and the default quota is set to 30GiB.
12
-
Then, the user can upload several files with a maximum size of 10GiB each.
13
-
The user could upload 3 files with 10GiB each, or several smaller ones, or anything in between.
14
-
However, the total size of all files deposited with a single record cannot exceed 30GiB.
11
+
For instance, consider the case that the maximum file size is set to 10 GiB, and the default quota is set to 30 GiB.
12
+
Then, the user can upload several files with a maximum size of 10 GiB each.
13
+
The user could upload 3 files with 10 GiB each, or several smaller ones, or anything in between.
14
+
However, the total size of all files deposited with a single record cannot exceed 30 GiB.
15
15
16
16
**Note** that the Flask configuration option `MAX_CONTENT_LENGTH` is only applied for multi-part form uploads (e.g. community logos), but not for the files deposited with records.
17
17
@@ -22,16 +22,6 @@ Limiting the maximum size for file uploads and number of files is critical to av
22
22
23
23
### Configuration
24
24
25
-
#### Frontend (Deposit Form)
26
-
Controls how much the user interface allows users to upload which can be configured in `invenio.cfg`:
27
-
28
-
```py
29
-
APP_RDM_DEPOSIT_FORM_QUOTA= {
30
-
"maxFiles": 100,
31
-
"maxStorage": 30*10**9,
32
-
}
33
-
```
34
-
35
25
#### Backend (File Storage & Record Quotas)
36
26
37
27
Controls enforcement at the storage and API level:
0 commit comments