cleanup tmp directory with carrierwave
I use carrierwave for my images upload, in my form i added a hidden field
for caching like is described in documentation.
= form_for @user, html: {multipart: true} do |f|
%p
= f.label :photo, "your image"
= f.file_field :photo, id: "img"
= f.hidden_field :photo_cache
but the problem is after uploading images and saving record, tmp directory
still having all temporary/caching files.
there is a way to clean up the tmp directory ?
No comments:
Post a Comment