paperclipt get error can't dump File when upload video in rails
Posted
by
user3510728
on Stack Overflow
See other posts from Stack Overflow
or by user3510728
Published on 2014-06-13T09:20:16Z
Indexed on
2014/06/13
9:25 UTC
Read the original article
Hit count: 165
when i try to upload video using paperclipt, i get error message can't dump File?
model video :
class Video < ActiveRecord::Base
has_attached_file :avatar,
:storage => :s3,
:styles => {
:mp4 => { :geometry => "640x480", :format => 'mp4' },
:thumb => { :geometry => "300x300>", :format => 'jpg', :time => 5 }
}, :processors => [:ffmpeg]
validates_attachment_presence :avatar
validates_attachment_content_type :avatar,
:content_type => /video/,
:message => "Video not supported"
end
when i try to create video, im get this error?
© Stack Overflow or respective owner