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 »

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 »

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 »

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: 1904
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Automatic deletion of orphan attachments.

Post by DavidIQ »

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 »

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: 1904
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Automatic deletion of orphan attachments.

Post by DavidIQ »

Draft messages don't hold attachment associations.
Image

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

Re: Automatic deletion of orphan attachments.

Post by canonknipser »

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
phpbb.de support team member - no support via PM or mail
English is not my native language
Extensions and scripts for phpBB

Post Reply