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.
5 Replies
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.
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
Hi @dakidd , we will investigate that one. cc @Hugo
Hi @dakidd this is fixed on latest
Thanks @Hugo!, i'll check it out