restore mime type logic but fix error

This commit is contained in:
Reece Browne 2025-08-15 11:29:18 +01:00
parent 453a4124cb
commit 9a1c8958f3
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -9,6 +9,7 @@ const HiddenFileInput: React.FC = () => {
ref={fileInputRef}
type="file"
multiple={true}
accept="*/*"
onChange={onFileInputChange}
style={{ display: 'none' }}
data-testid="file-input"

View File

@ -33,7 +33,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-[95vh]"
style={{
@ -125,7 +125,7 @@ const LandingPage = () => {
ref={fileInputRef}
type="file"
multiple
accept=".pdf,.zip"
accept="*/*"
onChange={handleFileSelect}
style={{ display: 'none' }}
/>