-
Notifications
You must be signed in to change notification settings - Fork 292
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
multiple images upload #2580
multiple images upload #2580
Conversation
I tried this, but when I selected 2 images the progress bar completed, and it took another 30 seconds for the second image to appear. This was pretty confusing. |
@jb55 I have addressed the issue you faced in subsequent commits |
it works, and I will merge it. I would like to see a followup that ensures the order in which they were clicked. right now its all async and the images come in with random order |
@jb55 I have resolved the issue about the order in the new commit |
@scoder1747 this adds a ordered indicator but it does not ensure that the order is correct when adding the elements to the note. the order would have to be saved somewhere and then the URLs and URL previews would have to be inserted in the correct locations. We can scope this to another PR though. I have a feeling this is going to be the biggest complain when we launch this on TestFlight... so we should do it soon |
Summary
This PR allows selecting multiple images option in the Media Picker Sheet. The selected images are uploaded using the default
handle_upload()
method while performed in an array iteration.The motivation comes from the fact that it is often tedious to select one image at a time from the sheet and repeat the same process for multiple uploads.
The demo of the feature is attached here:
multipleimagesselecting.mp4
Checklist
Closes:
orFixes:
tags in the commit messages wherever applicable, or made sure those are not needed. See Submitting patches