wordpress-mobile / wordpress-mobile/WordPress-Android
Image upload fails, but doesnt really.
Nobody has claimed this yet.
- 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
- try to publish a post containing an image.
- It fails.
- Press retry
- Check media library.
Tested on [device], Android [version], WPAndroid [version]
Oneplus Nord, Android 11, WPAndroid 19.01
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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