Azure Storage Account REST API Endpoints

Good evening, everyone!

I'm very new to Retool (just downloaded and started using it yesterday). We are determining if Retool is a viable solution for an app we are developing where the backend data will all live in Azure. We have successfully connected it to CosmosDB and thats working great but we are struggling getting it working with the FileShare REST endpoint.

Has anyone else successfully used Retool to access the FileShare REST API, and if so can you share any tips/tricks?

We need to be able to upload files using the FileDropzone input and download the files as well. Bonus points if you can help us find a way to do PDF preview in modal.


Hey @tj.couey!

Are you seeing any particular errors when trying to upload your files? There's some documentation on uploading files to APIs here. A common stumbling block is the need to pass the following to the file field:

{{ {data: fileDropzone.value[0], ...fileDropzone.files[0]} }}

As for the pdf - there is a PDF viewer component you can try including in your modal. It works best when you can pass it a URL for your PDF, however, if the PDF is relatively small and you have the base64 string for it you can also try using data:application/pdf;base64,<base64blob> in the source field.

Let me know if that helps or if it raises any more questions. Would be great to know some more detail about what you've been trying so far as well!