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 ---
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.