Soft-delete attachments so they can be restored

CTXMedia

Well-known member
We've had a member rage-quit and delete all their posts and attachements. With post history we have been able to restore all the posts, but all the attachments are gone, since it appears they are hard-deleted when a member edits their post and removes them. This is not the first time, and it won't be the last.

I would like to suggest a change in behaviour so that attachments are soft-deleted when a member removes them, allowing the attachments to be restored either manually or along with post content if you revert to a previous history version.

Thanks,
Shaun (y)
 
Upvote 23
We've also had moderators doing this (unintentionally) - so I'd like to bump this suggestion as we now have XF2 in development and I would like to see an option to have attachments SOFT DELETE instead of hard delete and disappearing from the server.

Cheers,
Shaun :D
 
If a member does not have permissions to hard delete content, then content should not be hard deleted by the member.
From this perspective this issue seems to be a bug to me. At least something that needs to be looked at because it is not logical / expected behavior and causes data loss.
 
I know with my Moderators I don't let them hard delete anything and as far as members having the ability to delete their post I don't allow that and they only have 10 minutes to edit their own posts.
 
I know with my Moderators I don't let them hard delete anything and as far as members having the ability to delete their post I don't allow that and they only have 10 minutes to edit their own posts.
I don't allow anyone on my forums to hard delete anything, plus members can't soft delete posts (they can only do profile posts).

However, your moderators can soft delete posts (presumably) and maybe edit for longer than others? If so, then if they do any of this with posts that have attachments, the attachments will be lost. If you don't like the idea of this happening, then please like the first post to show your support. :)
 
I think the best solution is to not allow editing posts after a short time, for example 24 hours. This solves the problem of a member deleting their attachments.
 
Indeed, but that doesn't solve the problem of staff soft deleting content causing hard deletion of attachments.
 
Soft deleting content doesn't hard delete attachments. The attachments are kept in that case. But you can't soft delete the attachments themselves. (I'm not sure if that was just a bad wording; just clarifying to others that may see this.)
 
Soft deleting content doesn't hard delete attachments. The attachments are kept in that case. But you can't soft delete the attachments themselves. (I'm not sure if that was just a bad wording; just clarifying to others that may see this.)
Thanks Mike. It would be great if we could have soft delete of attachments in XF2 (at some point) ... just to plug the no-hard-delete hole in our current board settings ... :whistle: ;)
 
Thanks Mike. It would be great if we could have soft delete of attachments in XF2 (at some point) ... just to plug the no-hard-delete hole in our current board settings ... :whistle: ;)
So, from your first post, you claimed a member rage-quit and deleted all their content and attachments couldn't be restored. But Mike just said:
Soft deleting content doesn't hard delete attachments. The attachments are kept in that case. But you can't soft delete the attachments themselves. (I'm not sure if that was just a bad wording; just clarifying to others that may see this.)

So does that mean your rage-quitter could hard-delete posts?
 
I suspect they edited the posts and removed the attachments (and content) from them.
ahhh, I see. So when attachments are deleted from a post, they are deleted for good, not disassociated from the post. And when a post itself is soft-deleted, nothing happens to the attachment.
 
I suspect they edited the posts and removed the attachments (and content) from them.
Yup, that's what happened - but I've also had it happen when a moderator edited a post and accidentally deleted the attachments (and we discovered afterwards that they could not be recovered - much to the annoyance of the member who had uploaded them years ago and no longer had the originals available).

Just looking to avoid those situations in the future and to bring attachment deletion inline with other content deletion (i.e. it can be recovered from). :)
 
We too have had some rage quitters. Whenrestoring their threads and posts we have found that they are, for practical purposes lost, because without the attachments the content doesn’t make sense.
 
Back
Top Bottom