diff --git a/ShareX.UploadersLib/FileUploaders/FTP/FTPAccount.cs b/ShareX.UploadersLib/FileUploaders/FTP/FTPAccount.cs index b5838d7bd..c8c22c45f 100644 --- a/ShareX.UploadersLib/FileUploaders/FTP/FTPAccount.cs +++ b/ShareX.UploadersLib/FileUploaders/FTP/FTPAccount.cs @@ -176,6 +176,7 @@ public string GetUriPath(string filename, string subFolderPath = null) } UriBuilder httpHomeUri; + var httpHomePath = GetHttpHomePath(); if (string.IsNullOrEmpty(httpHomePath)) @@ -230,7 +231,7 @@ public string GetUriPath(string filename, string subFolderPath = null) } httpHomeUri.Scheme = BrowserProtocol.GetDescription(); - return Uri.EscapeUriString(httpHomeUri.Uri.ToString()); + return httpHomeUri.Uri.AbsoluteUri; } public string GetFtpPath(string filemame)