wordpress-mobile / wordpress-mobile/WordPress-iOS

Failed block media uploads do not provide option to retry

Open
#20,184 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug Gutenberg
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

Expected behavior

When the media attached to a block fails to upload, tapping the block should provide the option to "retry" the upload within an Action Sheet.

This ability was originally added in https://github.com/wordpress-mobile/WordPress-iOS/pull/10935 and https://github.com/wordpress-mobile/WordPress-iOS/pull/15363. The regression may have been introduced in https://github.com/wordpress-mobile/WordPress-iOS/pull/19326/commits/f3f9fc7d251ca22dc407a8d6ace6d6dc7830e505. This feature works as expected on WordPress for Android.

Actual behavior

The only option provided is "Stop Upload."

Screenshot

https://user-images.githubusercontent.com/438664/220629412-c4d35e16-3362-4adb-bd7d-5030f20d8f38.MP4

IMG_6B4618E7E599-1

Steps to reproduce the behavior
  1. Add an Image or File block.
  2. Begin uploading media to the block.
  3. Disable the device's internet connection.
  4. Once the upload fails, re-enable the device's internet connection.
  5. Tap the block with the failed media.

Note
As referenced in a comment, deleting and reinstalling the app resolved the issue. Consistent reproduction steps are unknown.

Tested on iPhone SE, iOS 16.3, WPiOS [version]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with an Image or File block using the listed offline/online steps, then inspect the block's failed-upload Action Sheet flow. Compare the available actions with the expected retry option and the Android behavior. Done means a failed upload offers Retry as well as Stop Upload, with the behavior verified after restoring connectivity.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.