wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.69k stars 1.12k forks source link

Images remains with local paths if the user exits the app while the editor is opened #12480

Open leandroalonso opened 5 years ago

leandroalonso commented 5 years ago

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:

  1. Open the editor (create a new post or edit an existing one)
  2. Add an image
  3. Type some content to make sure the post is saved
  4. Close the app with the editor opened
  5. Go online
  6. Open the app again
  7. 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

designsimply commented 4 years ago

Re-tested and confirmed using WPiOS 13.6.0.1 TestFlight beta on iPhone 6S iOS 13.2.2. (1m18s)

reginabally commented 3 years ago

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" />

reginabally commented 2 years ago

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">