Download any file types based off trigger of button

Hello and welcome,

Please have a look at the documentation on Media files.

https://anvil.works/docs/media

You may try setting the media object’s name property.

There are other details that may be relevant depending on where your files are coming from (the file system, an HTTP endpoint, a datatable, a file loader, etc…), so have a look at the docs and see if you can find the right approach based on your situation.

2 Likes