If the file is in the "random" directory don't let image field delete the file when it's used up in the image field.

Comments

danielphenry’s picture

Commonly done with file delete. I think I would prefer to try to do a file_usage add on entity save with a fake entity id.

danielphenry’s picture

Issue summary: View changes
Status: Active » Fixed

Added a file usage entry for files pulled in from the random directory. They are not deleted when the file is unattached which prevents files pulled from the random directory from being deleted. Uninstaling the module clears the modules file usage entries.

This was the last outstanding issue from me calling this module complete. So moving the module to beta with this checkin.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.