Proper way to use S3 images in my app

Hi, my app is about geographical places. So every place needs an image, and I plan to use AWS S3 to store them and show in the app. I want to figure out a proper way of getting and displaying images for a collection of items.

My basic approach is to start a database table, were I store image names in a bucket and id of the corresponding place. What should I do on a Server part? I see it like this:

  1. Add a S3 storage in Global and connect it to my S3 user account
  2. Get a list of items to work with (let’s say, 20 places)
  3. Using this list, get all the file names from the table, associated with these 20 places
  4. With this file names list, use Sign Download Url to get file paths with tockens
  5. Use this temporary paths to dispaly images at my front end

Is that a correct way to work with S3 images in Wappler?

Community Page
Last updated: