instance method
acceptable_content?
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
acceptable_content?(token)
No documentation comment.
Parameters
-
tokenreq
Source
# File activestorage/app/controllers/active_storage/disk_controller.rb, line 60
def acceptable_content?(token)
token[:content_type] == request.content_mime_type && token[:content_length] == request.content_length
end
Defined in activestorage/app/controllers/active_storage/disk_controller.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::DiskController