Skip to content

Commit 3221930

Browse files
committed
Upload file encode update
1 parent 6f6d260 commit 3221930

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flat/Modules/CloudStorage/Upload/UploadService.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class UploadService {
216216
.percentEncodedPath
217217
.split(separator: "/")
218218
.last ?? "")
219+
.replacingOccurrences(of: "+", with: "%2B") // 阿里云文件名里的 + 需要 percent encode.
219220

220221
let partFormData = MultipartFormData(fileManager: FileManager.default, boundary: boundary)
221222
let headers: [(String, String)] = [

0 commit comments

Comments
 (0)