wordpress-mobile / wordpress-mobile/WordPress-Android

Image upload fails, but doesnt really.

Open
#15,897 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Medium [Type] Bug Media
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

When using the application, i would make a post that includes an image, press publish and it would upload the media and then publish the post.

Actual behavior

When i add the image, it starts to upload but after a while it fails. I am asked if i want to retry, pressing yes will start another upload and it will fail once more.
But if i go to the media library, i can see the image i tried to upload with an overlay saying "upload failed". The issue is that there are now duplicates of the image, that somehow managed to be uploaded, for each time i pressed "retry"

Steps to reproduce the behavior
  1. try to publish a post containing an image.
  2. It fails.
  3. Press retry
  4. Check media library.
Tested on [device], Android [version], WPAndroid [version]

Oneplus Nord, Android 11, WPAndroid 19.01

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 image upload and retry flow on the reported Android and WPAndroid versions, then trace how the upload state appears in the media library. Done should match the expected publish flow without creating duplicate media entries when a retry is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.