Method: CloudCrowd::Action#save
- Defined in:
- lib/cloud_crowd/action.rb
#save(file_path) ⇒ Object
Takes a local filesystem path, saves the file to S3, and returns the public (or authenticated) url on S3 where the file can be accessed.
61 62 63 64 |
# File 'lib/cloud_crowd/action.rb', line 61 def save(file_path) save_path = File.join(remote_storage_prefix, File.basename(file_path)) @store.save(file_path, save_path) end |