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#

質問済み 1年前469ビュー
1回答
2
承認された回答

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
回答済み 1年前
profile picture
エキスパート
iwasa
レビュー済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ