https://github.com/rootstrap/rails_admin_s3_file
A rails admin plugin to direct upload assets to s3.
https://github.com/rootstrap/rails_admin_s3_file
Last synced: 5 days ago
JSON representation
A rails admin plugin to direct upload assets to s3.
- Host: GitHub
- URL: https://github.com/rootstrap/rails_admin_s3_file
- Owner: rootstrap
- License: mit
- Created: 2017-05-23T20:30:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T18:55:53.000Z (over 8 years ago)
- Last Synced: 2026-01-13T06:53:56.383Z (29 days ago)
- Language: HTML
- Size: 10.7 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# RailsAdminS3File
Short description and motivation.
## Usage
- Add a new field to your model as string.
- Configure the field on your rails_admin.rb initializer
```
field :your_field, :s3_file do
upload_path "#{ENV['AWS_ENV']}/videos/" # mandatory
upload_extension 'mp4' # mandatory
upload_content_type 'video' # Optional default video
upload_acl 'public-read' # Optional default public-read options
end
```
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'rails_admin_s3_file'
```
And then execute:
```bash
$ bundle
```
Or install it yourself as:
```bash
$ gem install rails_admin_s3_file
```
## Contributing
Contribution directions go here.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).