Uploader for Rails using CarrierWave uploader and support for image, video and attachment.
- Add this line to your application's Gemfile
gem 'uppr'
- Load it in
lib/your_engine/engine.rb
if is used in engine
require 'uppr'
Mount uploader to your model. Uploader supports images, videos and files.
- Uppr::Image
- Uppr::Video
- Uppr::Attachment
#####Example
mount_uploader :image, Uppr::Image
mount_uploader :video, Uppr::Video
mount_uploader :attachment, Uppr::Attachment
It supports background uploading. If you want to upload on background, you need to have attribute_tmp
in your database table.
#####Example
store_in_background :image
store_in_background :video
store_in_background :attachment
original
1920px x autooriginal.thumb
720px x autosquare
1920px x 1920pxsquare.thumb
720px x 720pxportrait
1080 x 1920pxportrait.thumb
720px x 1280pxlandscape
1920px x 1080pxlandscape.thumb
1280px x 720px
mp4
- original resolution in Apple formatmp4.p1080
- 1080pmp4.p720
- 720pogv
- original resolution in Firefox formatogv.p1080
- 1080pogv.p720
- 720pwebm
- original resolution in Google formatwebm.p1080
- 1080pwebm.p720
- 720p
- zip
- rar
- doc