Retool Storage Query: File upload after renaming

Hello,

I’m working on a form for our clients to make sequencing orders.

Part of this process involves them downloading an excel template from Retool Storage, filling in their order information, and then uploading it back to Retool Storage.

Before the upload I’d like the file to be renamed. I’ve gotten that to work by using a function in the File name part of the storage query.

But I'm unsure how to reference the file to upload in the field called File content (in base64). The users select the file for upload using a FileButton called uploadSubSheet.

Any help is much appreciated!

OK got it. I needed {{ uploadSubSheet.value[0]?.base64Data }} in the File Content Field.

1 Like