I use amazon sdk for .net I uploaded the file to my bucket folder, now I want to get the URL of this file using this code
GetPreSignedUrlRequest request = new GetPreSignedUrlRequest(); request.BucketName = "my-new-bucket2"; request.Key = "Images/Tulips.jpg"; request.Expires = DateTime.Now.AddHours(1); request.Protocol = Protocol.HTTP; string url = s3.GetPreSignedURL(request);
but it returns url with key, expiration date and signature, but infact I want to get url without them, there is no other method to get url
** Things I've tried **
i and found that I need to change the resolution of my file
I change the file resolution on boot
request.CannedACL = S3CannedACL.PublicRead;
but this returns the same URL http://my-new-bucket2.s3-us-west-2.amazonaws.com/Images/Tulips.jpg?AWSAccessKeyId=xxxxxxxxxxxx&Expires=1432715743&Signature=xxxxxxxxxxx%3D
it works when I delete the keyid, the signature expires but how can I get the url with this, or should I do it manually
source share