Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add route to allow users to upload/delete site images #182

Closed
fzyang1227 opened this issue Jun 4, 2023 · 1 comment
Closed

Add route to allow users to upload/delete site images #182

fzyang1227 opened this issue Jun 4, 2023 · 1 comment
Assignees
Labels
backend enhancement New feature or request
Milestone

Comments

@fzyang1227
Copy link

Why

  • allow users to upload real images of the tree

What to do

Reach out to Kenny for any questions.

  • There's already an existing route that takes in a valid URL and sets it to be the site's image. Instead, change this route to take in the base 64 encoded string of the image, upload it to the S3 bucket (referring to the above link for reference), and adds the new image's S3 bucket URL as a new row in the site image table.

Right now

  • Takes in a s3 url (AWS storage)
  • Images specifically ...
  • route takes in: s3 url, retrieves it (image had already been uploaded manually)
  • Automate process of uploading image, generating url
    • Maybe when uploading get url
  • Then store url in database (tbd ... ticket to be merged)
  • Separate ticket to get site information would include getting image from s3
@fzyang1227 fzyang1227 added enhancement New feature or request backend labels Jun 4, 2023
@chromium-52 chromium-52 changed the title Add route to allow users to upload images Add route to allow users to upload/delete site images Jun 18, 2023
@fzyang1227 fzyang1227 added this to the Site Images milestone Jul 6, 2023
@huang0h huang0h closed this as completed Sep 15, 2023
@huang0h
Copy link
Contributor

huang0h commented Sep 15, 2023

Resolved by #191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants