Skip to content

Failed upload Snackbar shown after successful upload #10771

@malinajirka

Description

@malinajirka

Expected behavior

When I publish a post and the upload succeeds a positive Snackbar is shown.

Actual behavior

When I successfully publish a post but there is another upload which fails, the failed upload snackbar is shown which is very confusing.

Steps to reproduce the behavior

  1. Switch to a site where you are in Contributor role.
  2. Create a new post and add an image
  3. This post will always fail to upload since you don't have permissions to upload an image as a contributor (this reproduction steps will work until we fix Contributors shouldn't be allowed to upload media #10666 )
  4. Now create a new post without an image and publish it
  5. Notice the UploadService publishes the post, but also retries to upload the failing post -> the failed upload message is shown which is very confusing since the upload from step 2 actually succeeded
Tested on [device], Android [version], WPAndroid [version]

Emulator API 29

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions