Dimillian / IceCubesApp

A SwiftUI Mastodon client
https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884
GNU Affero General Public License v3.0
5.41k stars 516 forks source link

Bug: if you get an error uploading an image retrying isn't straight forward #1428

Open markrprior opened 1 year ago

markrprior commented 1 year ago

Environment:

Description

If I try to attach two images to a post and for some reason (perhaps a timeout) one does not load then a diagnostic "Error uploading" is returned over the blur box. Tapping on it gives two options (1) View error; and (2) Delete. The first just returns to the image blur box with "Error uploading" so not really helpful. If you take the "Delete" option that removes it from the post but if then try to add the image again and you return to photos you will find both images are still selected. If at this point you tap "Done" then nothing more happens (which is not intuitive). If you deselect them and return then the image that was successfully loaded disappears (again not ideal). If you deselect only the image that didn't load and return then the app will then try to load the image it had already loaded again (which seems pointless). If you have one image loaded and then you return to photos and add the extra image then the app will try to load both images again. Typically I have abandoned IceCubes before this point and used another app to compose my post so I'm not sure if there is any way to get it to successfully attach two (or more) images to a post if it can't successfully upload both of them at once.

Related Issues

richlv commented 1 year ago

As I somewhat often want to use IceCubes from a hike or a countryside trip, the connectivity often can be a bit slow, and image uploads fail very frequently (might be #350). And when they fail, recovering from it is super tricky. I'm not even sure about more than one image, but it took me a while to figure out the flow with a single image after it fails:

  1. Remove the failed image.
  2. Choose image adding, deselect the previously added image (it still shows up as selected).
  3. Choose image adding, add the image again.

This sequence was mentioned in the initial description, but this is a little bit easier to perceive, perhaps :)

With multiple images it's more difficult. Not aware of a way to rearrange images, so adding several images and having some of the first ones fail to upload would require removing most/all of the images.

richlv commented 3 months ago

Seems to be improved in the latest version - removing image from the post view unmarks it in the image selection, too.