Can't upload binary files to s3 in Retool Workflows

I'm trying to upload an mp3 file to s3. I have the Upload data field set to {{ atob(data) }} in order to covert it from base64 string to binary. See below.

However, I get the following error when doing this:

Error evaluating uploadRecording: Cannot read properties of undefined (reading 'file')

If I omit the atob()function call it uploads to s3 as text. How can I upload binary files in Retool Workflows?

Fixed, this turned out to be an error on my side. The property I was pulling wasn't the base64 encoded property.

1 Like