-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add 300mb file upload limit for admins
- Loading branch information
Showing
5 changed files
with
98 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { UppyOptions } from '@uppy/core' | ||
|
||
export const UPPY_CONFIG_ADMIN: Partial<UppyOptions> = { | ||
restrictions: { | ||
// max upload file size in bytes (i.e. 300 x 1048576 => 300 MB) | ||
maxFileSize: 300 * 1048576, | ||
maxNumberOfFiles: 5, | ||
minNumberOfFiles: null, | ||
allowedFileTypes: null, | ||
}, | ||
locale: { | ||
strings: { | ||
youCanOnlyUploadX: { | ||
0: 'You can only upload %{smart_count} file', | ||
1: 'You can only upload %{smart_count} files', | ||
}, | ||
youHaveToAtLeastSelectX: { | ||
0: 'You have to select at least %{smart_count} file', | ||
1: 'You have to select at least %{smart_count} files', | ||
}, | ||
exceedsSize: 'This file exceeds maximum allowed size of %{size}', | ||
youCanOnlyUploadFileTypes: 'You can only upload: %{types}', | ||
companionError: 'Connection with Companion failed', | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters