instance method
acceptable_content?
Ruby on Rails 8.0.4
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 54
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 54
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::DiskController