You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: