an_toni.a
05/21/2024, 9:12 AMNomi
05/21/2024, 1:42 PMan_toni.a
05/21/2024, 3:45 PMan_toni.a
05/21/2024, 3:47 PMcsharp
public string GetPresignedUrlForUpload(string filePath)
{
var request = new GetPreSignedUrlRequest
{
BucketName = _bucketName,
Key = GetEntryKeyName(filePath),
Verb = HttpVerb.PUT, // Specify PUT for upload
Expires = DateTime.Now.AddDays(7),
};
string preSignedUrl = _client.GetPreSignedURL(request);
return preSignedUrl;
}Nomi
05/22/2024, 9:17 AM