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

tmpdir filling up with attachments #4

Open
adamjt opened this issue Dec 19, 2012 · 0 comments
Open

tmpdir filling up with attachments #4

adamjt opened this issue Dec 19, 2012 · 0 comments

Comments

@adamjt
Copy link

adamjt commented Dec 19, 2012

We're building out our Communication object attachments with this, where @msg is a Postmark::Mitt object:

if [email protected]?
@msg.attachments.each do |att|
comm.attachments.build(:file => att.read)
end
end

comm.save!

In the save hook for that model the attachments are sent to S3 via paperclip, but /tmp/ is filling up with the processed files. Is there a different way we should be doing it to ensure that cruft gets cleaned up?

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