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

multiple images upload #2580

Merged
merged 4 commits into from
Oct 16, 2024
Merged

Conversation

scoder1747
Copy link
Contributor

@scoder1747 scoder1747 commented Oct 11, 2024

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

  • I have read (or I am familiar with) the Contribution Guidelines
  • I have tested the changes in this PR
  • My PR is either small, or I have split it into smaller logical commits that are easier to review
  • I have added the signoff line to all my commits. See Signing off your work
  • I have added appropriate changelog entries for the changes in this PR. See Adding changelog entries
    • I do not need to add a changelog entry. Reason: [Please provide a reason]
  • I have added appropriate Closes: or Fixes: tags in the commit messages wherever applicable, or made sure those are not needed. See Submitting patches

@jb55
Copy link
Collaborator

jb55 commented Oct 13, 2024

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.

@alltheseas alltheseas added this to the 1.11 - lists milestone Oct 14, 2024
@alltheseas alltheseas linked an issue Oct 14, 2024 that may be closed by this pull request
@scoder1747
Copy link
Contributor Author

@jb55 I have addressed the issue you faced in subsequent commits

@jb55
Copy link
Collaborator

jb55 commented Oct 15, 2024

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

@scoder1747
Copy link
Contributor Author

@jb55 I have resolved the issue about the order in the new commit

@scoder1747
Copy link
Contributor Author

Screenshot 2024-10-16 at 9 52 41 AM

@jb55
Copy link
Collaborator

jb55 commented Oct 16, 2024 via email

@jb55
Copy link
Collaborator

jb55 commented Oct 16, 2024

@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

@jb55 jb55 merged commit 7c0e1c5 into damus-io:master Oct 16, 2024
@scoder1747 scoder1747 mentioned this pull request Oct 17, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

Select and upload multiple pictures
3 participants