module CarrierWave::Uploader::Secure::Base
Secure
uploader
Extends CarrierWave::Uploader::Base by adding encryption/decryption operations before uploading and after dowloading files.
Public Instance Methods
retrieve_from_store!(identifier)
click to toggle source
Calls superclass method
# File lib/carrierwave/secure/uploader.rb, line 31 def retrieve_from_store!(identifier) super @file = CarrierWave::Secure::DecryptedFile.new(file) if file end
store!(new_file = file)
click to toggle source
Calls superclass method
# File lib/carrierwave/secure/uploader.rb, line 24 def store!(new_file = file) sanitized = CarrierWave::SanitizedFile.new(new_file) encrypted = CarrierWave::Secure::EncryptedFile.new(sanitized) super(encrypted) @file = CarrierWave::Secure::DecryptedFile.new(encrypted) end