1
我知道我可以保留舊文件的上傳更新後:如何查詢CarrierWave中的舊文件?
class AvatarUploader < CarrierWave::Uploader::Base
configure do |config|
config.remove_previously_stored_files_after_update = false
end
end
但我怎麼可以查詢這些舊文件?假設有人更新他們的頭像,舊文件保持不變,有沒有辦法顯示舊文件?