instance method
read
Ruby on Rails 4.0.13
Since v3.0.20Signature
read(length=nil, buffer=nil)
Shortcut for tempfile.read.
Parameters
-
lengthopt = nil -
bufferopt = nil
Source
# File actionpack/lib/action_dispatch/http/upload.rb, line 35
def read(length=nil, buffer=nil)
@tempfile.read(length, buffer)
end
Defined in actionpack/lib/action_dispatch/http/upload.rb line 35
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::UploadedFile