Active Storage provide filename for use where file is actually stored

George Claghorn’s solution relies on .attach(...). How to specify a custom blob key when uploading the file through a form?

<%= form.file_field :avatar %>