dakidd
dakidd3w ago

Download S3 File - Public App

Hello, is it possible to allow a public app user to download an S3 bucket file returned as a result from a script run? Currently i'm getting a 401 error when previewing / downloading the file.
No description
5 Replies
invakid404
invakid4043w ago
I'm not sure about the error you're getting in the preview, but I had a similar use case (I wanted to download a file from a different bucket than the one configured in Windmill) and I did something similar to https://www.windmill.dev/docs/apps/download_files#transformers
Download files in apps | Windmill
Within your Windmill apps, you might want users to download files. There are two options: the download button, and the transformers. Both involve manipulating data URLs scheme with a Base64 encoded string.
invakid404
invakid4043w ago
except I made my script return a presigned URL that I then fetched in the transformer as the files I'm downloading are pretty large and returning them from a script as a data URL didn't sound like a great idea to me :D
rubenf
rubenf3w ago
Hi @dakidd , we will investigate that one. cc @Hugo
Hugo
Hugo2w ago
Hi @dakidd this is fixed on latest
dakidd
dakiddOP2w ago
Thanks @Hugo!, i'll check it out

Did you find this page helpful?