Avinash Boddu
Avinash Boddu

Reputation: 59

Best Approach for Uploading and Displaying Images in a AWS S3 Bucket

What is the best approach for Uploading and Displaying Images in a AWS S3 Bucket?

1.
Frontend <--> Backend <--> S3 Bucket
(Image shall be sent to backend, backend shall internally upload to S3 bucket)
                or
2. 
2.1 Frontend <--> Backend <--> S3 Bucket
    Frontend shall request for temporary URL of S3 Bucket
2.2 Frontend <--> S3 Bucket
    Frontend shall upload images/files using that temporary URL.

3. Any other??

Upvotes: 0

Views: 1828

Answers (2)

Satya Narayana
Satya Narayana

Reputation: 1

Frontend <--> S3 Bucket // with in angular-12 or 13//

Frontend shall upload images /view images in using that temporary URL with in angular

please shar your answers i hope using in some peoples 

thank you 

Upvotes: 0

abhinav pratap
abhinav pratap

Reputation: 623

It depends on frontend/backend technologies. In a project, I used Reactjs(frontend) and Node.js(backend). It was pretty smooth uploading images to s3 bucket in nodejs using aws sdk.

So I would prefer Frontend <----> Backend & Backend will use aws sdk to upload images to S3 bucket.

Helpful link to upload images in S3 buckets using Node.js: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-node-examples.html

Upvotes: 1

Related Questions