You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes you don't want to have the secret key in your client app and want to get it from the backend. In that case, you can provide an upload signature directly:
@@ -104,10 +104,10 @@ Sometimes you don't want to have the secret key in your client app and want to g
104
104
let signature =UploadSignature(signature: "signature", expire: 1658486910)
105
105
106
106
// Async:
107
-
let file =tryawait uploadcare.uploadFile(data, withName: "random_file_name.jpg", store: .doNotStore, uploadSignature: signature)
107
+
let file =tryawait uploadcare.uploadFile(data, withName: "random_file_name.jpg", store: .auto, uploadSignature: signature)
108
108
109
109
// With a completion callback:
110
-
let task = uploadcare.uploadFile(data, withName: "some_file.ext", store: .doNotStore, uploadSignature: signature) { progress in
110
+
let task = uploadcare.uploadFile(data, withName: "some_file.ext", store: .auto, uploadSignature: signature) { progress in
111
111
print("progress: \(progress)")
112
112
} _: { result in
113
113
...
@@ -122,7 +122,7 @@ Direct uploads work with background `URLSession`, so uploading will continue if
0 commit comments