Jump to content

What happens to orphan files in downloads?


SJ77

Recommended Posts

When you upload attach to post, but not post your post - you attachment already saved in your storage. It can be located in your /uploads/ folder or other place, which you select in file settings (attachments block). So if user return to this topic - then he will see autosaved content of editor with his attachment. If user clean up his browser and return to topic - then he will not see his autosaved content or attachment. But his file stayed saved as his file. He can choose them from 'Insert other media' -> 'insert exiting attachment'. All attachments saved here.

So you don't need worry about some unuseful garbage. User files is stayed as userfiles and they not lost by they.

List of attachment you can find in 'core_attachments' database table. Try to load attachment without post message and you can see your file in this table and see path for them.

Link to comment
Share on other sites

They should be purged after x amount of hours defined in the admin area to be honest. If the user nevers ends up posting the attachment its wasted space.

This would need to be a group based setting allowing admins to upload but not attache but not users.

Link to comment
Share on other sites

The software has a task that runs every 12 hours that searches for any uploaded attachments that aren't actually attached to anything and deletes them.

Search the AdminCP for "tasks" and you will see it listed.

The actual file that controls it is at /applications/core/tasks/cleanupattachments.php

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...