Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoDelete has no effect when a file is replaced on model update #10

Open
rimas-kudelis opened this issue Oct 26, 2015 · 1 comment
Open

Comments

@rimas-kudelis
Copy link
Contributor

When I replace a file with a new one (using ActiveRecord::update), the original file remains in untouched. Assuming that we always have just one link to a file (which looks like a safe assumption when autoDelete = true, I think the original file should be deleted in such cases to avoid garbage buildup.

@rimas-kudelis
Copy link
Contributor Author

Ah, so you have this setting already (deleteOldFile), but it's not documented! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant