Yuvaleros / material-ui-dropzone

A Material-UI file upload dropzone
MIT License
483 stars 248 forks source link

ZIP upload working on UNIX systems but not on Windows #321

Closed stijn-gravity closed 2 years ago

stijn-gravity commented 2 years ago

Bug Report

Describe the bug

This could well be a mistake made by us somewhere. In our application we use this uploader for ZIP files, and on OSX everything is working as expected, but on Windows devices (any browser) we keep receiving the message 'File not supported'.

This is on any browser on both operating systems.

Steps to reproduce

    acceptedFiles = ['application/zip'],
    maxFileSize = 150000000, // 150mb

   ...

    <DropzoneDialog
      {...register(name)}
      acceptedFiles={acceptedFiles}
      filesLimit={1}
      maxFileSize={maxFileSize}
      initialFiles={initialFiles}
      showPreviewsInDropzone={false}
      open={isOpen}
      onSave={onDropzoneSave}
      onClose={onDropzoneClose}
    />

Expected behavior

We expect this to work on all operating systems.

 Screenshots

image-20210823-141901 (1)

dahem commented 2 years ago

add '.zip' in acceptedFiles

stijn-gravity commented 2 years ago

Closing because it can't be reproduced by me anymore.