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

Unable to post images with certain filenames using Share Sheet from Photos app #16773

Closed
twstokes opened this issue Jun 29, 2021 · 0 comments · Fixed by #17785
Closed

Unable to post images with certain filenames using Share Sheet from Photos app #16773

twstokes opened this issue Jun 29, 2021 · 0 comments · Fixed by #17785

Comments

@twstokes
Copy link
Contributor

4094887-zen

Expected behavior

  • Uploaded image appears on the blog post.
  • <img> tag contains a URL to the site's Media Library.

Actual behavior

  • A broken image appears on the blog post.
  • <img> tag contains a URL to a local iOS path (e.g. ///private/var/mobile/Containers/Shared/AppGroup/35CF9C30-0B32-4B11-ADC3-C7DDE5E92589/Media/)

Steps to reproduce the behavior

Uploading a new post using the Share Sheet app icon Uploading a new draft using the Share Sheet Save as Draft action

  1. Take any standard JPEG or PNG file and rename it with the filename crown-house_©-francesco-russo_websize_002-1-1, keeping the file’s extension.
  2. AirDrop it to iOS / iPadOS.
  3. In the Photos app, choose the photo and launch the Share Sheet.
  4. Use either method in the above screenshots to create a new post or a new draft.
  5. Load the new post on the WordPress site and observe that the <img> tag’s src attribute looks something like: ///private/var/mobile/Containers/Shared/AppGroup/35CF9C30-0B32-4B11-ADC3-C7DDE5E92589/Media/image_140f0c50-6547-4f91-946b-6c17e7f7f28f.crown-house_%C2%A9-francesco-russo_websize_002-1-1.jpeg instead of an image located in the site’s Media Library.

Other details

  • The photo still landed successfully in the Media Library in my testing.
  • I believe this issue is independent of type of site (the customer had Atomic and I’ve tested on self-hosted and Simple).
Tested on iPhone 12 Pro, iOS 14.6, WPiOS 17.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment