mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +13:00
Fix Issue ShareX/ShareX#802
Do not url-encode file names for (S)FTP upload
This commit is contained in:
parent
c399f48276
commit
0eb0cad50c
2 changed files with 0 additions and 2 deletions
|
@ -109,7 +109,6 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
{
|
{
|
||||||
UploadResult result = new UploadResult();
|
UploadResult result = new UploadResult();
|
||||||
|
|
||||||
fileName = Helpers.GetValidURL(fileName);
|
|
||||||
string subFolderPath = Account.GetSubFolderPath(null, NameParserType.FolderPath);
|
string subFolderPath = Account.GetSubFolderPath(null, NameParserType.FolderPath);
|
||||||
string path = subFolderPath.CombineURL(fileName);
|
string path = subFolderPath.CombineURL(fileName);
|
||||||
bool uploadResult;
|
bool uploadResult;
|
||||||
|
|
|
@ -67,7 +67,6 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
{
|
{
|
||||||
UploadResult result = new UploadResult();
|
UploadResult result = new UploadResult();
|
||||||
|
|
||||||
fileName = Helpers.GetValidURL(fileName);
|
|
||||||
string subFolderPath = Account.GetSubFolderPath();
|
string subFolderPath = Account.GetSubFolderPath();
|
||||||
string path = subFolderPath.CombineURL(fileName);
|
string path = subFolderPath.CombineURL(fileName);
|
||||||
bool uploadResult;
|
bool uploadResult;
|
||||||
|
|
Loading…
Reference in a new issue