Skip to content

fix: file not possible to delete if it fails between operations#2319

Open
Ducica wants to merge 1 commit intoinveniosoftware:masterfrom
oarepo:oarepo-contribution-file-upload-bug
Open

fix: file not possible to delete if it fails between operations#2319
Ducica wants to merge 1 commit intoinveniosoftware:masterfrom
oarepo:oarepo-contribution-file-upload-bug

Conversation

@Ducica
Copy link
Copy Markdown
Contributor

@Ducica Ducica commented Apr 15, 2026

  • if file upload fails for example on commit, it is not possible to
  • remove it from the UI by clicking on trash can

❤️ Thank you for your contribution!

Description

Screen.Recording.2026-04-15.at.9.23.07.mov

When file upload fails at another step, like for example commit, it is no longer possible to remove it from the UI. It is because, files links are not actually saved in redux in any of the steps, and so delet operation does not actually have self linke available. This happens both with old uploader and with Uppy uploader. Now unfortunately, the flow that two uploaders use is different, so it is not possible to have a fully unified solution for both, so I tried to make the solution touch as little as possible.

Please let us know if this makes sense for you.

@Ducica Ducica requested a review from mirekys April 15, 2026 07:22
* if file upload fails for example on commit, it is not possible to
* remove it from the UI by clicking on trash can
@Ducica Ducica force-pushed the oarepo-contribution-file-upload-bug branch from 4b1333c to 7619a3b Compare April 15, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant