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#

demandé il y a un an471 vues
1 réponse
2
Réponse acceptée

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
répondu il y a un an
profile picture
EXPERT
iwasa
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions