Hi All, I am working on a Web listing page where a user adds (using input type=file )multiple images for a listing and some information about the listing like title, description, and location (using input type = type). I plan to store uploaded images in s3 and the corresponding URL and listing information in DB across two tables. One table to store listing information and the other table to store listing image URLs from s3. I first store listing information and send back listing_id with presigned URLs. Once the user clicks the button to submit the listing, I plan to call an API with listing information and image file names, and the API returns with the listing id and presigned URL. Following the success of the call, I plan to use these presigned URLs to upload the images to s3, and on the success, I make another API call to store the image URLs under listing photos using the listing id from the first API call. Is this approach correct? Can I make it any better and more efficient? I think these API calls might make the page submission looks slower.
submitted by /u/Ok-Outlandishness-74
[link] [comments]
from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/VobPEjk