From 875dacaf1bd4f36cb76bd0819b3eabda26e6c65b Mon Sep 17 00:00:00 2001 From: Reece Date: Thu, 2 Oct 2025 10:19:03 +0100 Subject: [PATCH] removed restrictions on uploads --- frontend/src/components/FileManager.tsx | 1 - frontend/src/components/fileEditor/AddFileCard.tsx | 2 +- frontend/src/components/fileEditor/FileEditor.tsx | 2 -- frontend/src/components/fileManager/HiddenFileInput.tsx | 1 - frontend/src/components/shared/LandingPage.tsx | 4 ++-- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/FileManager.tsx b/frontend/src/components/FileManager.tsx index e75e8e7b8..fb26a3a3a 100644 --- a/frontend/src/components/FileManager.tsx +++ b/frontend/src/components/FileManager.tsx @@ -123,7 +123,6 @@ const FileManager: React.FC = ({ selectedTool }) => { onDrop={handleNewFileUpload} onDragEnter={() => setIsDragging(true)} onDragLeave={() => setIsDragging(false)} - accept={{}} multiple={true} activateOnClick={false} style={{ diff --git a/frontend/src/components/fileEditor/AddFileCard.tsx b/frontend/src/components/fileEditor/AddFileCard.tsx index e00d5d173..dbc319c68 100644 --- a/frontend/src/components/fileEditor/AddFileCard.tsx +++ b/frontend/src/components/fileEditor/AddFileCard.tsx @@ -15,7 +15,7 @@ interface AddFileCardProps { const AddFileCard = ({ onFileSelect, - accept = ".pdf,.zip", + accept = "*/*", multiple = true }: AddFileCardProps) => { const { t } = useTranslation(); diff --git a/frontend/src/components/fileEditor/FileEditor.tsx b/frontend/src/components/fileEditor/FileEditor.tsx index 39f69b716..00bf22480 100644 --- a/frontend/src/components/fileEditor/FileEditor.tsx +++ b/frontend/src/components/fileEditor/FileEditor.tsx @@ -411,8 +411,6 @@ const FileEditor = ({ )} diff --git a/frontend/src/components/fileManager/HiddenFileInput.tsx b/frontend/src/components/fileManager/HiddenFileInput.tsx index 05f35aae1..8dee9e278 100644 --- a/frontend/src/components/fileManager/HiddenFileInput.tsx +++ b/frontend/src/components/fileManager/HiddenFileInput.tsx @@ -9,7 +9,6 @@ const HiddenFileInput: React.FC = () => { ref={fileInputRef} type="file" multiple={true} - accept={["*/*"] as any} onChange={onFileInputChange} style={{ display: 'none' }} data-testid="file-input" diff --git a/frontend/src/components/shared/LandingPage.tsx b/frontend/src/components/shared/LandingPage.tsx index 787b0e565..5f1fe8d8e 100644 --- a/frontend/src/components/shared/LandingPage.tsx +++ b/frontend/src/components/shared/LandingPage.tsx @@ -41,7 +41,7 @@ const LandingPage = () => { {/* White PDF Page Background */} { ref={fileInputRef} type="file" multiple - accept=".pdf,.zip" + accept="*/*" onChange={handleFileSelect} style={{ display: 'none' }} />