No commit activity in last 3 years
No release in over 3 years
provide helper method that S3 file download use temporaly file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 5.0.0
 Project Readme

S3FileCacheDownload

Provide helper method that S3 file download use temporaly file

Usage

First, execute bin/rails s3_file_cache_download_engine:install:migrations.

Second, include S3FileCacheDownload::Helper module to your controller.

  class YourController
    include S3FileCacheDownload::Helper
  end

Call send_s3_file method.

  class YourController
    include S3FileCacheDownload

    def show
      send_s3_file :your_bucket_name, :your_file_key
    end
  end

If you want to use option, you can pass option.

  class YourController
    include S3FileCacheDownload

    def show
      send_s3_file :your_bucket_name, :your_file_key, disposition: 'inline'
    end
  end

Installation

Add this line to your application's Gemfile:

gem 's3_file_cache_download'

And then execute:

$ bundle

Or install it yourself as:

$ gem install s3_file_cache_download

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.