13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'app/controllers/framey/videos_controller.rb', line 13
def callback
render :text => "" and return unless request.post? && params[:video]
video = Video.create!({
:name => params[:video][:name],
:filesize => params[:video][:filesize],
:duration => params[:video][:duration],
:state => params[:video][:state],
:views => params[:video][:views],
:flv_url => params[:video][:flv_url],
:mp4_url => params[:video][:mp4_url],
:small_thumbnail_url => params[:video][:small_thumbnail_url],
:medium_thumbnail_url => params[:video][:medium_thumbnail_url],
:large_thumbnail_url => params[:video][:large_thumbnail_url]
})
render :text => "" and return
end
|