Subject: Help Needed with File Upload to S3 in Go
Hi everyone,
I’m currently working on a project that involves uploading files to an Amazon S3 bucket using Go, but I’ve hit a bit of a snag. While I can upload the files without any issues, I’m struggling to generate a downloadable link for the uploaded files afterwards.
Here’s a snapshot of what I’ve done so far:
1. I’m using the AWS SDK for Go to handle the upload process.
2. The files upload successfully to the specified S3 bucket.
3. However, I’m not sure how to construct the correct URL for the files after they’ve been uploaded.
I’ve read through the documentation, but I’m still confused about how to generate a pre-signed URL or what kind of permissions my bucket should have for this to work.
If anyone has experience with this and could provide some guidance or perhaps share an example of how to upload a file to S3 and then generate a downloadable link, I would greatly appreciate it!
Thanks in advance for your help!