Upload files to an external database and get them back using a REST API

Hello,

I'm building an app similar to a creative agency where clients and their customers can share files with each other by uploading / downloading them through the app. The files can be almost anything (blob) the client and their customers want to share so they could be images, videos, or documents.

Since these attachments could have very large sizes, and the cost of storing them in a Xano database will make it uneconomical for me as an app developer, I'm looking at Azure Blob Storage or AWS S3 storage as potential solutions.

Problem is that while I've figured out how to GET blobs stored in Azure/AWS using REST APIs with Xano, I can't figure out how to upload files to these external databases using REST APIs in Xano. I started by testing out on Azure Blob Storage but it's probably the same issue I'll have on AWS S3.

I would like to handle all backend logic in Xano so that when a user uploads a file from the frontend, it doesn't store it in Xano but uses Xano on the backend to upload the file into Azure / AWS. And I also want to use Xano to get a specific file / blob from Azure/AWS so that it can be downloaded from the frontend.

Questions
1.  How do I use Xano to upload a single file to an external storage such as Azure / AWS? I want the actual file to be stored in Azure/AWS, not just a URL to the file.
2. Does this process in #1 change if I allow users to upload several files at once from the frontend?
3. Once I GET the file from Azure/AWS, is there anything else I need to do in Xano to make it possible for users to download the file from the front end?


Thank you.
Other
6 replies