Class: Metova::S3Controller

Inherits:
ApplicationController show all
Defined in:
app/controllers/metova/s3_controller.rb

Instance Method Summary collapse

Instance Method Details

#presigned_urlObject



4
5
6
7
8
9
10
11
# File 'app/controllers/metova/s3_controller.rb', line 4

def presigned_url
  if defined? Refile
    signature = Refile.store.presign
    respond_with signature
  else
    respond_with Metova::GenericError.new('Server maintainer must install Refile before using S3 direct uploads!')
  end
end