WordPress-iOS
WordPress-iOS copied to clipboard
Images remains with local paths if the user exits the app while the editor is opened
Expected behavior
Images that are added will be replaced with their remote URL as soon as possible.
Actual behavior
Images that are added to a post never gets its remote URL if the user closes the app with the editor opened.
Steps to reproduce the behavior
While offline:
- Open the editor (create a new post or edit an existing one)
- Add an image
- Type some content to make sure the post is saved
- Close the app with the editor opened
- Go online
- Open the app again
- Check that the image is uploaded but the
<img src="">still point to a local path
Video
https://drive.google.com/file/d/1_WOjOxzJ34nGTEEycBz8tzlwErv8fyzt/view?usp=sharing
Re-tested and confirmed using WPiOS 13.6.0.1 TestFlight beta on iPhone 6S iOS 13.2.2. (1m18s)
There's a report in 3679734-zen. I can see the image URL is pointing to a local path:
<img class="alignnone size-full" src="///var/mobile/Containers/Data/Application/2F613A38-C69F-41F6-937A-5290FD89E818/Library/Caches/Media/thumbnail-p1508-1334x1334.jpeg" />
Another issue found in 5481226-zd-woothemes. App version 20.4.
Sample local path:
<img data-id="-2140826122" src="///private/var/mobile/Containers/Data/Application/F81EA292-582C-4FD9-8A22-9219DA003D56/tmp/-2140826122.jpg" alt="" class="wp-image--2140826122" scale="0">