summaryrefslogtreecommitdiff
path: root/frontend/lib
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/lib')
-rw-r--r--frontend/lib/constants.ts39
1 files changed, 39 insertions, 0 deletions
diff --git a/frontend/lib/constants.ts b/frontend/lib/constants.ts
new file mode 100644
index 0000000..8f74dd1
--- /dev/null
+++ b/frontend/lib/constants.ts
@@ -0,0 +1,39 @@
1// Upload configuration constants
2export const UPLOAD_MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB
3export const UPLOAD_MAX_FILES = 10; // Maximum files per upload
4export const UPLOAD_ALLOWED_TYPES = [
5 // Documents
6 'application/pdf',
7 'application/msword',
8 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
9 'application/vnd.ms-excel',
10 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
11 'application/vnd.ms-powerpoint',
12 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
13 'text/plain',
14 'text/csv',
15 // Images
16 'image/jpeg',
17 'image/png',
18 'image/gif',
19 'image/webp',
20 'image/svg+xml',
21 // Videos
22 'video/mp4',
23 'video/webm',
24 'video/ogg',
25 // Audio
26 'audio/mpeg',
27 'audio/wav',
28 'audio/ogg',
29 // Archives
30 'application/zip',
31 'application/x-rar-compressed',
32 'application/x-7z-compressed',
33 // Code/Text
34 'application/json',
35 'text/javascript',
36 'text/html',
37 'text/css',
38 'application/xml'
39]; // Empty array means all types allowed \ No newline at end of file