AliyunpanUploader
public class AliyunpanUploader : NSObject
上传器
-
上传文件
Declaration
Swift
public func upload( fileURL: URL, fileName: String? = nil, driveId: String, folderId: String = "root", checkNameMode: AliyunpanFile.CheckNameMode = .ignore, useProof: Bool = false, session: URLSession = URLSession.shared ) async throws -> AliyunpanFileParameters
fileURL文件 URL
fileName文件名,可选,不填时为 fileURL.lastPathComponent
driveId目标 drive id
folderId目标文件夹 id
checkNameMode重名策略,默认 .ignore
useProof使用秒传,默认 false
session上传使用的 URLSession
Return Value
AliyunpanFile