S3Kit

Build Status Swift Version

⚠️ 注意**** 已弃用 ***⚠️ 注意

请使用 Soto 代替

轻松上传文件到 S3。目前在 Linux 上尚不可用

待办:添加 Linux 兼容性

//let result = try S3.with(credentials: credentialsPath).upload(file: fileURL, to: bucket)
let result = try S3.with(key: "1234" and: "secret1234").upload(file: fileURL, to: bucket)
var description = result.response.description
if let data = result.data as? Data {
    if let text = NSString(data:data, encoding:String.Encoding.utf8.rawValue) as? String {
        description += "\n\(text)"
    }
}