Throw a real error when uploading non-file things in Ruby.