How to Use 'Ajax Upload' with Ruby on Rails?
问题 I'm using this Script http://valums.com/ajax-upload/ to get Ajax upload working with Ruby on Rails but when i try uploading a file on my controller action I only get this: Parameters: {"qqfile"=>"Foo.png"} {"qqfile"=>"Foo.png", "action"=>"ul_file", "controller"=>"upload_files"} but i cant use this as a file and do things as thefile = params[:qqfile] foo = thefile.original_filename.slice(thefile.original_filename.rindex("."), thefile.original_filename.length).downcase what do i need to do to