I have a developed a Reactjs front end, FastAPI backend and MongoDb database. I want to upload images to a private Azure storage account and consume them on the site.
What I'm struggling to understand is what the best practice is for loading the images?
Should I:
- Get a SAS key from my API, then go directly from Reactjs to the storage account URL?
- Get the image from the Azure storage using the API and serve it to the Reactjs
- A better option?
Thanks in advance