Percent-encode returned URLs in Google Cloud Storage uploader

This commit is contained in:
Charles Milette 2018-04-24 18:56:45 -04:00
parent c3a6cc05e5
commit 358d32f135
No known key found for this signature in database
GPG key ID: 1A5AE81377AD973A

View file

@ -155,7 +155,7 @@ public override UploadResult Upload(Stream stream, string fileName)
return null;
}
result.URL = URLHelpers.FixPrefix($"{Domain}/{uploadpath}", "https://");
result.URL = URLHelpers.FixPrefix($"{Domain}/{URLHelpers.URLPathEncode(uploadpath)}", "https://");
return result;
}