codersforcauses / repair-lab

https://repair-labs.vercel.app
MIT License
8 stars 3 forks source link

Upload event images to S3 #219

Open dct0 opened 9 months ago

dct0 commented 9 months ago

Basic Information

On the event manager event image tab, we need the ability to upload images to S3, and display them on pages (such as the public events page). To upload images, this is a two-step process:

  1. Send file to upload to the /upload-image endpoint
  2. Receive the s3 key from that response
  3. Update the corresponding event with the s3 key This pattern follows the existing repair request image upload.

The second half involves generating presigned urls for the event images. When toClientToResponse is called, it should also send the s3 keys to aws, and get back the image url to use on the frontend.

Other Information

[Are there any additional information that we should know about?]

github-actions[bot] commented 9 months ago

Branch issue-219-Upload_event_images_to_S3 created!