Update myjokes_controller.rb

 i think it like this   original_filename
@file = params[:Filedata]
 @file.original_filename = 'photo.jpg'
 @photo = @user.photo.new(:file => @file)