removed restrictions on uploads

This commit is contained in:
Reece 2025-10-02 10:19:03 +01:00
parent 3af4b1c263
commit 875dacaf1b
5 changed files with 3 additions and 7 deletions

View File

@ -123,7 +123,6 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
onDrop={handleNewFileUpload}
onDragEnter={() => setIsDragging(true)}
onDragLeave={() => setIsDragging(false)}
accept={{}}
multiple={true}
activateOnClick={false}
style={{

View File

@ -15,7 +15,7 @@ interface AddFileCardProps {
const AddFileCard = ({
onFileSelect,
accept = ".pdf,.zip",
accept = "*/*",
multiple = true
}: AddFileCardProps) => {
const { t } = useTranslation();

View File

@ -411,8 +411,6 @@ const FileEditor = ({
<AddFileCard
key="add-file-card"
onFileSelect={handleFileUpload}
accept=".pdf,.zip"
multiple={true}
/>
)}

View File

@ -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"

View File

@ -41,7 +41,7 @@ const LandingPage = () => {
{/* White PDF Page Background */}
<Dropzone
onDrop={handleFileDrop}
accept={["application/pdf", "application/zip", "application/x-zip-compressed"]}
accept={["*/*"]}
multiple={true}
className="w-4/5 flex items-center justify-center h-[95%]"
style={{
@ -178,7 +178,7 @@ const LandingPage = () => {
ref={fileInputRef}
type="file"
multiple
accept=".pdf,.zip"
accept="*/*"
onChange={handleFileSelect}
style={{ display: 'none' }}
/>