Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments are not deleted after uploading a new one. #7817

Open
DiegoAndresCortes opened this issue Aug 1, 2023 · 1 comment
Open

Attachments are not deleted after uploading a new one. #7817

DiegoAndresCortes opened this issue Aug 1, 2023 · 1 comment

Comments

@DiegoAndresCortes
Copy link
Contributor

Description

If you edit a post with attachments to add more, and delete some, those 'deleted' ones aren't actually removed/deleted.

Steps to reproduce

  1. Post a message or topic with some attachments
  2. Edit the message and upload a new attachment
  3. Delete a previously uploaded attachment
  4. Save > The deleted attachment/s remain

Additional information/references

This bug only occurs on said order, it works fine if you first delete and then upload.
As a matter of fact, this bug is reproducible on the same post if you have this scenario:

Uploaded attachments

  • Attachment A
  • Attachment B
  • Attachment C

If I upload attachment D and then delete A, and then upload attachment E and delete B and then hit SAVE:
The following attachments will be in the post:

  • A
  • B
  • C
  • D
  • E
@DiegoAndresCortes
Copy link
Contributor Author

Additionally: You can't delete attachments if you click 'delete' and cancel the first time. Subsequent attempts will not trigger the button anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants