Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
245
stars
86
forks
source link
File Type Issue in Mobile Safari Ios Version 17 and Chrome ios #134
Hello Everyone , thank you for making a great react-component , i need your help regarding a very weird problem i encountered while uploading media files , i works fine in chrome and firefox , also no issues in safari for mac , but in mobile version of safari it seems like it is unable to upload file with correct extension , the file object which also contains type (basically what kind of file it is) , so whenever i try to upload a mp4 file from mobile the type shown is image/*extension name , can anybody help me on this
Hello Everyone , thank you for making a great react-component , i need your help regarding a very weird problem i encountered while uploading media files , i works fine in chrome and firefox , also no issues in safari for mac , but in mobile version of safari it seems like it is unable to upload file with correct extension , the file object which also contains type (basically what kind of file it is) , so whenever i try to upload a mp4 file from mobile the type shown is image/*extension name , can anybody help me on this
here is my code sample
const fileTypes = ["JPG", "PNG", "JPEG", "WEBP" , "MP4"]; <FileUploader name="file" types={fileTypes} handleChange={(_file) => { handleChange(_file) }} maxSize={200} onSizeError={(err) => { console.log(err); toast('File Size should be less than 200 MB', { duration: 3000, clickable: true, className: 'my-toast-failure', position: 'top-right' }); }} disabled={isDisabled} onTypeError={(err) => { console.log(err); toast(
Extension Not Supported , Supported Extension ${fileTypes.map((type) =>
.${type}) }
, { duration: 5000, clickable: true, className: 'my-toast-failure', position:'top-right' }); }}