class Rack::Test::UploadedFile

def method_missing(method_name, *args, &block)

Delegate all methods not handled to the tempfile.
def method_missing(method_name, *args, &block)
  tempfile.public_send(method_name, *args, &block)
end