简体   繁体   中英

React Dropzone does not work correctly with .pkl files

I try to use React Dropzone for .pkl and .pk files.

<DropzoneDialog
   acceptedFiles=[".pkl, .pk"]
/>

But when I drag the .pkl file, DropZone becomes red and then accepts file. Does anybody know how to fix it?

maybe like this :

for image its like this --- updated ---

<DropzoneDialog
  acceptedFiles={['image/jpeg', 'image/png', 'image/bmp']}
/>

check something like :

<DropzoneDialog
  acceptedFiles={['application/python-pickle']}
/>

--- update ---

NO SOLUTION

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM