Routes.yaml vs routes.yml

hey there,

i expect an issue with uploading routes.yml

when i try to download <routes.yaml> in an admin settings dashboard it downloads a file <routes.yml> instead of mentioned <routes.yaml>

then tried to upload an edited version of <routes.yml> but got the message “The file type you uploaded is not supported. Please use .YAML”

do i just need to resave the edited one w/ .yaml extension and upload it

or what the solution or maybe where’s my mistake then?

Yes :)

I was about to open a bug for this, is there a reason it doesn’t save in the same pattern?

It would be nice if ghost would choose an extension and simply stick to it. Is this intentional behavior? Or maybe an oddity of the OS?

If it’s saving as “.yml” for you then it’s an OS oddity. The response header for the file download request specifies routes.yaml as the filename:

Content-Disposition: Attachment; filename="routes.yaml"

Okay thanks. Well, that’s mac for you then. :-)