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

Handle jpeg and png UTType properly #5507

Merged

Conversation

aringenbach
Copy link
Contributor

Fixes #3636

This adds a check on png/jpeg UTType with the same priority as kUTTypeImage (which already worked properly when sharing with UIImage).
Reproducing issue should work with any app sharing an image file URL rather than an UIImage.

Screenshot of the receiving web app, first message is without this fix :
image

Signed-off-by: Arnaud Ringenbach <[email protected]>
Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@github-actions
Copy link

github-actions bot commented Feb 4, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/M1ZyvU

@aringenbach aringenbach merged commit 1490c43 into develop Feb 4, 2022
@aringenbach aringenbach deleted the aringenbach/3636_fix_sharing_file_url_with_image_uttype branch February 4, 2022 16:30
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

Successfully merging this pull request may close these issues.

Image shared from external app sent as file
2 participants