From f69ca010b80703389fffe75fc6dca907e53df74d Mon Sep 17 00:00:00 2001 From: diogo464 Date: Mon, 11 Aug 2025 13:40:27 +0100 Subject: basic file upload --- frontend/lib/constants.ts | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 frontend/lib/constants.ts (limited to 'frontend/lib') 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 @@ +// Upload configuration constants +export const UPLOAD_MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB +export const UPLOAD_MAX_FILES = 10; // Maximum files per upload +export const UPLOAD_ALLOWED_TYPES = [ + // Documents + 'application/pdf', + 'application/msword', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'application/vnd.ms-excel', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'application/vnd.ms-powerpoint', + 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'text/plain', + 'text/csv', + // Images + 'image/jpeg', + 'image/png', + 'image/gif', + 'image/webp', + 'image/svg+xml', + // Videos + 'video/mp4', + 'video/webm', + 'video/ogg', + // Audio + 'audio/mpeg', + 'audio/wav', + 'audio/ogg', + // Archives + 'application/zip', + 'application/x-rar-compressed', + 'application/x-7z-compressed', + // Code/Text + 'application/json', + 'text/javascript', + 'text/html', + 'text/css', + 'application/xml' +]; // Empty array means all types allowed \ No newline at end of file -- cgit