Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot upload multiple files on iOS #37

Open
nicksulkers opened this issue Apr 22, 2022 · 1 comment
Open

Cannot upload multiple files on iOS #37

nicksulkers opened this issue Apr 22, 2022 · 1 comment

Comments

@nicksulkers
Copy link

nicksulkers commented Apr 22, 2022

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:

const found = this.files.findIndex(f => f.name === file.name);
if (found === -1) {

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
Copy link

gemdav commented Dec 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants