class CarrierWave::Storage::TencentCos

Public Instance Methods

retrieve!(identifier) click to toggle source

Load and return a file instance from your engine.

# File lib/carrierwave/storage/tencent_cos.rb, line 15
def retrieve!(identifier)
    CarrierWave::Storage::TencentCos::File.new(uploader.store_path(identifier))
end
store!(file) click to toggle source

Create and save a file instance to your engine.

# File lib/carrierwave/storage/tencent_cos.rb, line 8
def store!(file)
    f = CarrierWave::Storage::TencentCos::File.new(uploader.store_path)
    f.store(file)
    f
end