|
@@ -41,7 +41,7 @@ namespace GxPress.Api.AdminControllers
|
|
|
|
|
|
var saveResult = FileHelper.SaveFile(StringUtils.GetWebRootPath(_environment.WebRootPath), file.FileName,
|
|
|
bytes);
|
|
|
- saveResult.AbsolutePath = Request.Scheme + "://" + Request.Host.Host +
|
|
|
+ saveResult.AbsolutePath = Request.Scheme + "s://" + Request.Host.Host +
|
|
|
(Request.Host.Port > 0 ? $":{Request.Host.Port}" : string.Empty) +
|
|
|
saveResult.RelativePath;
|
|
|
return saveResult;
|
|
@@ -69,7 +69,7 @@ namespace GxPress.Api.AdminControllers
|
|
|
|
|
|
var saveResult = FileHelper.SaveFile(StringUtils.GetWebRootPath(_environment.WebRootPath), file.FileName,
|
|
|
bytes);
|
|
|
- saveResult.AbsolutePath = Request.Scheme + "://" + Request.Host.Host +
|
|
|
+ saveResult.AbsolutePath = Request.Scheme + "s://" + Request.Host.Host +
|
|
|
(Request.Host.Port > 0 ? $":{Request.Host.Port}" : string.Empty) +
|
|
|
saveResult.RelativePath;
|
|
|
|