method
filename
rails latest stable - Class:
ActiveStorage::Blob
filename()public
Returns an ActiveStorage::Filename instance of the filename that can be queried for basename, extension, and a sanitized version of the filename that’s safe to use in URLs.