mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-17 02:01:03 +10:00
more work on attachments
* fix frontend env usage
This commit is contained in:
12
apps/server/src/core/attachment/attachment.constants.ts
Normal file
12
apps/server/src/core/attachment/attachment.constants.ts
Normal file
@ -0,0 +1,12 @@
|
||||
export enum AttachmentType {
|
||||
Avatar = 'avatar',
|
||||
WorkspaceLogo = 'workspace-logo',
|
||||
SpaceLogo = 'space-logo',
|
||||
File = 'file',
|
||||
}
|
||||
|
||||
export const validImageExtensions = ['.jpg', '.png', '.jpeg'];
|
||||
export const MAX_AVATAR_SIZE = '5MB';
|
||||
|
||||
export const validFileExtensions = ['.jpg', '.png', '.jpeg', '.pdf'];
|
||||
export const MAX_FILE_SIZE = '20MB';
|
||||
Reference in New Issue
Block a user