how to generate shared link after uploading file with rest API in asp Core.

0

in AWS, there's one option to generate a pre-signed URL for the object specified. Enter image description here I want a shared URL for the object I'm uploading through the rest API. Is that possible to get a shared link through rest API, If yes, What could be the possible solution? I don't want to add AWS S3 SDK dependency. Framework: ASP dot net core. language: C#

asked a year ago447 views
1 Answer
2
Accepted Answer

Yes, it is possible to generate a pre-signed URL for an object in AWS S3 through the REST API without adding the AWS S3 SDK as a dependency. One way to do this would be to use the AWS S3 REST API's "PutObject" or "GetObject" endpoint, along with the "X-Amz-Signature" header to sign the request using your AWS S3 access key and secret key. Once you have the pre-signed URL, you can share it with others to give them temporary access to the object. An example of how to generate a pre-signed URL using the AWS S3 REST API in C# without the AWS S3 SDK can be found in the AWS documentation. https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html

profile picture
answered a year ago
profile picture
EXPERT
iwasa
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions