mendixlabs / mendix-file-dropper

Mendix File Dropper (Mendix 8, React based, Webmodeler compatible)
https://appstore.home.mendix.com/link/app/111497/
Other
7 stars 17 forks source link

Cannot upload multiple files on iOS #37

Open nicksulkers opened 2 years ago

nicksulkers commented 2 years ago

I'm having trouble uploading multiple files on iOS when the files are created on the fly using the camera app.

This is likely because they are all given the name (image.jpg) and then get stuck on the following lines which prevents duplicate file names: https://github.com/mendixlabs/mendix-file-dropper/blob/1a7842492a3b2dfe160c441c5104d497386503e5/src/store/fileDropperStore.ts#L160-L161 On other platforms the filenames are usually randomly(?) chosen and therefor unique, thus not having the same issue.

I, having looked into this only a little bit, imagine this code is an attempt to prevent duplicate files from being uploaded. I'm not sure if this has any implications further down the line, but perhaps the check could be removed or changed to also take the file size into consideration?

gemdav commented 11 months ago

I'm having the same issue. It would be really helpful if this duplicate check behavior was optional.