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