質問編集履歴
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -21,6 +21,15 @@
|
|
21
21
|
UIApplication.shared.keyWindow?.rootViewController?.dismiss(animated: false, completion: nil)
|
22
22
|
}
|
23
23
|
|
24
|
+
func uploadAction(_ file: String) {
|
25
|
+
print(file)
|
26
|
+
if let documentsDir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last {
|
27
|
+
let testFilePath = documentsDir.appendingPathComponent(file).path
|
28
|
+
drive?.uploadFile("20200204", filePath: testFilePath, MIMEType: "image/png") { (fileID, error) in
|
29
|
+
print("Upload file ID: (fileID); Error: (error?.localizedDescription)")
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
24
33
|
```
|
25
34
|
|
26
35
|
```
|