Automatic deletion of orphan attachments.

Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
Post Reply
Fleet Lists
Registered User
Posts: 1
Joined: Sun Oct 21, 2012 7:59 am

Automatic deletion of orphan attachments.

Post by Fleet Lists » Sun Oct 21, 2012 8:05 am

Would it be possible to introduce a feature whereby orphan attachments are automatically deleted after a certain number of days where the number of days is defined in the attachments profile and where a certain value such as 0 or 999 would mean that such deletion is not to take place?

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: Automatic deletion of orphan attachments.

Post by Oleg » Mon Oct 22, 2012 10:37 pm

What creates orphan attachments?

User avatar
Pony99CA
Registered User
Posts: 986
Joined: Sun Feb 08, 2009 2:35 am
Location: Hollister, CA
Contact:

Re: Automatic deletion of orphan attachments.

Post by Pony99CA » Tue Oct 23, 2012 1:52 am

I think that you get an orphan if you upload an attachment but never submit the post. There's an Orphan attachments counter in the Board statistics section of the main ACP page.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1731
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Automatic deletion of orphan attachments.

Post by DavidIQ » Tue Oct 23, 2012 3:18 am

Pony99CA wrote:I think that you get an orphan if you upload an attachment but never submit the post. There's an Orphan attachments counter in the Board statistics section of the main ACP page.

Steve
That is correct. Also applies to PMs, if enabled.
Image

User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: Automatic deletion of orphan attachments.

Post by Dragosvr92 » Tue Oct 23, 2012 10:37 am

Probably they should be held on the server if they are attached to a draft message. When deleting the draft, also delete the attachment.. ?
Previous user: TheKiller
Avatar on Memberlist 1.0.3

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1731
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Automatic deletion of orphan attachments.

Post by DavidIQ » Tue Oct 23, 2012 2:10 pm

Draft messages don't hold attachment associations.
Image

User avatar
canonknipser
Registered User
Posts: 59
Joined: Mon Sep 19, 2011 4:42 am
Location: Germany

Re: Automatic deletion of orphan attachments.

Post by canonknipser » Tue Oct 23, 2012 2:13 pm

TheKiller wrote:Probably they should be held on the server if they are attached to a draft message. When deleting the draft, also delete the attachment.. ?
But attaching it to a message can only be done via acp, not during posting. So a normal user will always re-upload the attachment, this keeps the old (uploaded previous) attachment in orphaned state.
Greetings, Frank

english is not my native language

Post Reply