fixing issue where a space in the file name causes 400 errors: #14 · 7e292b6f70 - SVN.BY: Go Git Service
소스 검색

fixing issue where a space in the file name causes 400 errors: #14

Tiernan OToole 8 년 전
부모
커밋
7e292b6f70
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      B2Uploader/Program.cs

+ 1 - 0
B2Uploader/Program.cs

@@ -213,6 +213,7 @@ namespace B2Uploader
213 213
         static string getValidFilename(string input)
214 214
         {
215 215
             string fileName = input.Replace('\\', '/');
216
+            fileName = fileName.Replace(' ', '_');
216 217
             if (fileName.StartsWith("/"))
217 218
             {
218 219
                 fileName = fileName.Substring(1);