fixed #2475: URL encode Amazon S3 upload path

This commit is contained in:
Jaex 2017-04-29 08:09:07 +03:00
parent c58b96e088
commit c1be9e36db

View file

@ -233,6 +233,8 @@ public string GenerateURL(string uploadPath)
{
if (!string.IsNullOrEmpty(Settings.Endpoint) && !string.IsNullOrEmpty(Settings.Bucket))
{
uploadPath = URLHelpers.URLPathEncode(uploadPath);
string url;
if (Settings.UseCustomCNAME && !string.IsNullOrEmpty(Settings.CustomDomain))