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

Duplicate and grey images if uploading images to Media Library with bad network #15470

Open startuptester opened 3 years ago

startuptester commented 3 years ago

Expected behavior

Retry should only load one copy after reconnection

Actual behavior

I get duplicate images and greyed images were reported (see video) (The video also shows how annoying the black Retry message is)

https://cloudup.com/cnf0OOvc9Hl

Steps to reproduce the behavior

  1. In Media Library, add an image from device
  2. During the upload, enter airplane mode
  3. Turn off airplane mode and you will see option to retry
  4. Retry and you will get a duplicate (may have to refresh to see them all)
Tested on iPhone Pro 12, iOS 14.2, WPiOS 16.3
SiobhyB commented 2 years ago

x-referencing a duplication issue on the Android side as there's some discussion around the API in the comments that could also be useful on the iOS side: https://github.com/wordpress-mobile/WordPress-Android/issues/13427