Unused attached images still show up on list of uploaded images for comment #3856

Closed
opened 2025-11-02 05:28:31 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @bkraul on GitHub (Aug 27, 2019).

Description

When attaching images to a comment, the images are uploaded immediately if using copy/pasted. However, let's say I pasted an image I did not want to use, so I copy paste another one and end up using the latter one on the comment, I'd only want to see the one I used. However, right now, both images uploaded are shown in the uploads bar for the comment, with no option of being able to delete unwanted attachments.

Screenshots

image

Originally created by @bkraul on GitHub (Aug 27, 2019). - Gitea version (or commit ref): ca6fb004a - Git version: 2.22.0 - Operating system: Ubuntu 18.04 (docker host) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL): https://try.gitea.io/Arrow/Project2/issues/1 - [ ] No - [ ] Not relevant - Log gist: ## Description When attaching images to a comment, the images are uploaded immediately if using copy/pasted. However, let's say I pasted an image I did not want to use, so I copy paste another one and end up using the latter one on the comment, I'd only want to see the one I used. However, right now, both images uploaded are shown in the uploads bar for the comment, with no option of being able to delete unwanted attachments. ## Screenshots ![image](https://user-images.githubusercontent.com/14616851/63802472-53724680-c8d8-11e9-994a-eb7347be8511.png)
GiteaMirror added the type/enhancement label 2025-11-02 05:28:31 -06:00
Author
Owner

@guillep2k commented on GitHub (Aug 27, 2019):

This could even be considered a security issue. Imagine I paste an image, and after watching it I realize it contains sensitive information. I'd change the image to hide the secrets... but they're still there! (And I might not even realize it).

@guillep2k commented on GitHub (Aug 27, 2019): This could even be considered a security issue. Imagine I paste an image, and after watching it I realize it contains sensitive information. I'd change the image to hide the secrets... but they're still there! (And I might not even realize it).
Author
Owner

@lunny commented on GitHub (Aug 28, 2019):

We need a delete action to the attachments.

@lunny commented on GitHub (Aug 28, 2019): We need a delete action to the attachments.
Author
Owner

@stale[bot] commented on GitHub (Oct 27, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Oct 27, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@guillep2k commented on GitHub (Oct 27, 2019):

This could be closed, as there's now implemented the possibility of deleting attachments.

@guillep2k commented on GitHub (Oct 27, 2019): This could be closed, as there's now implemented the possibility of deleting attachments.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3856