instance method
read
Ruby on Rails 7.0.10
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 59
def read(length = nil, buffer = nil)
@tempfile.read(length, buffer)
end
Defined in actionpack/lib/action_dispatch/http/upload.rb line 59
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::UploadedFile