It doesn't happen too much times, but in some cases it could be useful to be able to remove attachments, when requested by the poster, and when there is a good reason.

CommentFileSizeAuthor
#5 Voila_Capture_29.png47.3 KBavpaderno
#3 kitten_icon.jpg7.33 KBdave reid

Comments

dave reid’s picture

I don't how we could do this because we can not edit/remove patches because it was my understanding that there would be severe breakage with the test bot. If someone doesn't an attachment published, what's wrong with the webmasters unpublishing the comment and the user adding a new comment?

avpaderno’s picture

The problem is that the attachment is not deleted, and anybody would be able to download the attachment even after the comment is unpublished.

dave reid’s picture

StatusFileSize
new7.33 KB

I want to test that theory.

Ok I guess that's true, but there is no longer a link to download it. Not sure exactly how people would find it.

avpaderno’s picture

Browsers keep a history of the URL visited; on the Mac, I can then see from which URL I downloaded a file.

I was just thinking that in some cases it could be useful to remove a file for any reason; I am not sure how many times that could be useful.

avpaderno’s picture

StatusFileSize
new47.3 KB

I attached a screenshot of the information given about a file I downloaded (Mac OS X 10.5.7).

robby.smith’s picture

Hello,
Is this still not possible at the moment?
I accidentally posted a wrong screengrab that shows personal information.
If possible, I would like that attachment removed from the post.

Regards

dave reid’s picture

@robby.smith: No it is not. We can only unpublish or delete your post. You can e-mail me the link if you want to avoid posting it here.

Dave Reid
Drupal.org administrator

avpaderno’s picture

I tried to use comment_upload.module on my test site, but it doesn't work. I wanted to verify something, but I cannot; so I need to ask here: does the module have a permission that is checked to see if a user can remove an attachment added in a comment?
If the module doesn't use such permission, then this feature request can be possibly marked as won't fix.

avpaderno’s picture

Status: Active » Closed (won't fix)

I looked at the module code, but I don't see any code that allows to a user with the right permission to remove an attachment from a comment.
I am marking this feature request as won't fix.

greggles’s picture

Title: Allow Drupal.org site maintainers to remove attachments from a comment » Allow site maintainers to remove attachments from a comment
Project: Drupal.org site moderators » Comment Upload
Version: » 6.x-1.x-dev
Component: Other » Code
Status: Closed (won't fix) » Active

Well, we can just move it over and make it a feature request.

avpaderno’s picture

Title: Allow site maintainers to remove attachments from a comment » Allow users with the right permission to remove attachments from a comment

Thanks, greggles; I didn't think of this.

What the module should do is to show the list of attachments in the comment edit form in the same way it is done in the node edit form.

dww’s picture

Status: Active » Closed (duplicate)