Package url extension package registry

I am generating iso in my gitlab pipeline and storing it in a package registry. I have a use-case where I want to download this iso and there is a validation that only url with .iso extension is allowed. Package registry provides a url to download package something like this “”.
Is there any way we can get a url which has extension same as a package in package registry.