Project

uppr

0.0
No commit activity in last 3 years
No release in over 3 years
Easy images, videos and files uploader
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.5

Runtime

 Project Readme

Uppr

Uploader for Rails using CarrierWave uploader and support for image, video and attachment.

Installation

  • 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'

Usage

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

Image versions

  • original 1920px x auto
  • original.thumb 720px x auto
  • square 1920px x 1920px
  • square.thumb 720px x 720px
  • portrait 1080 x 1920px
  • portrait.thumb 720px x 1280px
  • landscape 1920px x 1080px
  • landscape.thumb 1280px x 720px

Video versions

  • mp4 - original resolution in Apple format
  • mp4.p1080 - 1080p
  • mp4.p720 - 720p
  • ogv - original resolution in Firefox format
  • ogv.p1080 - 1080p
  • ogv.p720 - 720p
  • webm - original resolution in Google format
  • webm.p1080 - 1080p
  • webm.p720 - 720p

Allowed attachments

  • zip
  • rar
  • pdf
  • doc