class ActiveStorage::Blob

def filename

that's safe to use in URLs.
queried for basename, extension, and a sanitized version of the filename
Returns an ActiveStorage::Filename instance of the filename that can be
def filename
  ActiveStorage::Filename.new(self[:filename])
end