Always `download.txt` from "Download a file from GCS" query

Hi there -

  • Goal: Query that downloads a file from GCS and uses the correct filename and extension. The problem is I am downloading a .zip file but the file extension from the query is always .txt. In fact, the file name is always download.tx.

  • Steps:

  • Create query with "Download a file from GCS" with known GCS file key and trigger from a button.
  • Details:
  • I've tried using the "Read a file from GCS" and transform documented here: S3 Download - Rename File - The data attribute from the GCS query is empty so that doesn't work.

Thanks for the help.

1 Like

Hey @floodfx - welcome to the community! :wave:

Your original issue sounds like a bug with the GCS resource within Retool. I'm able to reproduce the behavior and will talk to the team about getting that fixed! The workaround that you found, though, should definitely be a viable solution. I was able to get it to work as a "Download a file from GCS" query with the following in a success callback:

Let me know if you're still having issues!