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#

gefragt vor einem Jahr469 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
beantwortet vor einem Jahr
profile picture
EXPERTE
iwasa
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen