0

Say I have a form that takes user image, and some string or numeric data. I need to store them in a dynamodb table. enter image description here I have made this without the image part. Now, we can't directly pass images to a lambda function, and dynamodb will only store the bucket path of the image file. We need to store the image first to get its s3 path. My question is, upon the submit button click, what should trigger? Does it require 2 APIs and be called one by one, or theres some better ways? I'm sure some of you have dealt with APIgw and form data. Any help will be highly appreciated.

ashraf minhaj
  • 504
  • 2
  • 14
  • 1
    a few tips for getting good response on SO: avoid images if at all possible. Ask yourself, does this image really provide any meaningful contribution to the question? Explain relevant infrastructure configuration - we don't know how your lambda receives web requests which impacts what it can do. If you do your own research, make sure to mention why it didn't help (https://stackoverflow.com/questions/41756190/api-gateway-post-multipart-form-data ?). Finally, this is a programming site, so include the code you tried and what it did. https://stackoverflow.com/help/how-to-ask – erik258 Oct 02 '22 at 13:34

0 Answers0