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
поправил некоторые формулировки, в т.ч. не нужно мн.ч. в словосочетаниях Files list -> file list, files group -> file group.
в коде переменные конечно же не правил.
This method allows you to get an authenticated URL from your backend by using a redirect.
253
+
This method allows you to get an authenticated URL from your backend by using redirect.
254
254
To answer a request to that URL, your backend should generate an authenticated URL to your file and perform REDIRECT to a generated URL. A redirected URL will be caught and returned in the completion handler of that method.
255
255
256
256
Example: https://yourdomain.com/{UUID}/ — backend redirects to https://cdn.yourdomain.com/{uuid}/?token={token}&expire={timestamp}.
@@ -288,7 +288,7 @@ uploadcare.convertDocumentsWithSettings([task1, task2]) { (response, error) in
288
288
}
289
289
```
290
290
291
-
Alternatively you can pass custom "paths" param as array of strings (see ([documentation](https://uploadcare.com/docs/transformations/document_conversion/#convert-url-formatting?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift))):
291
+
Alternatively, you can pass custom "paths" param as array of strings (see ([documentation](https://uploadcare.com/docs/transformations/document_conversion/#convert-url-formatting?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift))):
292
292
293
293
```swift
294
294
uploadcare.convertDocuments([":uuid/document/-/format/:target-format/"]) { (response, error) in
@@ -347,7 +347,7 @@ uploadcare.convertVideosWithSettings([task1, task2]) { (response, error) in
347
347
}
348
348
```
349
349
350
-
Alternatively you can pass custom "paths" param as array of strings (see ([documentation](https://uploadcare.com/docs/transformations/video_encoding/#process-url-formatting?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift))):
350
+
Alternatively, you can pass custom "paths" param as array of strings (see ([documentation](https://uploadcare.com/docs/transformations/video_encoding/#process-url-formatting?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift))):
351
351
352
352
```swift
353
353
uploadcare.convertVideos([":uuid/video/-/format/ogg/"]) { (response, error) in
Multipart Uploads are useful when you are dealing with files larger than 100MB or explicitly want to accelerate uploads. Each Multipart Upload contains 3 steps:
61
+
Multipart Uploads are useful when you are dealing with files larger than 100MB or you explicitly want to accelerate uploads. Each Multipart Upload contains 3 steps:
62
62
1. Start transaction
63
63
2. Upload file chunks concurrently
64
64
3. Complete transaction
65
65
66
-
You can use this upload method which will run all 3 steps for you:
66
+
You can use this upload method and it'll run all 3 steps for you:
@@ -124,7 +125,7 @@ let task3 = UploadFromURLTask(sourceUrl: url!)
124
125
125
126
## Check the status of a file uploaded from URL ([API Reference](https://uploadcare.com/api-refs/upload-api/#operation/fromURLUploadStatus/?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift)) ##
126
127
127
-
Use token that was recieved with Upload files from URLs method:
128
+
Use a token recieved with Upload files from the URLs method:
128
129
129
130
```swift
130
131
uploadcare.uploadAPI.uploadStatus(forToken: "UPLOAD_TOKEN") { (status, error) in
@@ -148,7 +149,7 @@ uploadcare.uploadAPI.fileInfo(withFileId: "FILE_UUID") { (file, error) in
148
149
}
149
150
```
150
151
151
-
## Create files group ([API Reference](https://uploadcare.com/api-refs/upload-api/#operation/createFilesGroup/?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift)) ##
152
+
## Create file group ([API Reference](https://uploadcare.com/api-refs/upload-api/#operation/createFilesGroup/?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift)) ##
152
153
153
154
Uploadcare library provides 2 methods to create a group:
154
155
@@ -165,7 +166,7 @@ self.uploadcare.uploadAPI.createFilesGroup(files: files) { (response, error) in
165
166
}
166
167
```
167
168
168
-
2. Provide an array of files UUIDs:
169
+
2. Provide an array of file UUIDs:
169
170
170
171
```swift
171
172
let filesIds: [String] = ["FILE_UUID1", "FILE_UUID2"]
Requests signing works by default if secret key is provided during SDK initialization. SDK generates a signature internally. The signature is valid for 30 minutes. The new signature is generated automatically when the old one expires.
196
+
Signing requests works by default if a Secret key is provided during SDK initialization. SDK generates a signature internally, and this signature stays valid for 30 minutes. New signatures are generated automatically when older ones expire.
196
197
197
-
Please notice that signed uploads should be enabled in your project’s settings in the[Uploadcare dashboard](https://uploadcare.com/dashboard/).
198
+
Note that Signed Uploads should be enabled in the project’s settings in your[Uploadcare dashboard](https://uploadcare.com/dashboard/).
Copy file name to clipboardexpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
Uploadcare Swift API client for iOS, iPadOS, tvOS, macOS, and Linux handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
8
8
9
-
Check out out[Demo App](/Demo).
9
+
Check out our[Demo App](/Demo).
10
10
11
11
*[Installation](#installation)
12
12
*[Initialization](#initialization)
@@ -44,7 +44,7 @@ To use a stable version, add a dependency to your Cartfile:
Check full[Upload API documentation](https://github.com/uploadcare/uploadcare-swift/blob/master/Documentation/Upload%20API.md)for all available methods.
81
+
Check the[Upload API documentation](https://github.com/uploadcare/uploadcare-swift/blob/master/Documentation/Upload%20API.md)to see all available methods.
// Or you can just upload data and provide filename
100
+
// Or you can just upload data and provide a filename
101
101
let task = uploadcare.uploadAPI.upload(files: ["random_file_name.jpg": data], store: .store, expire: nil, { (progress) in
102
102
print("upload progress: \(progress *100)%")
103
103
}) { (resultDictionary, error) in
@@ -118,7 +118,7 @@ task.cancel()
118
118
119
119
## Using REST API
120
120
121
-
Check full [REST API documentation](https://github.com/uploadcare/uploadcare-swift/blob/master/Documentation/REST%20API.md) for all available methods.
121
+
Refer to the [REST API documentation](https://github.com/uploadcare/uploadcare-swift/blob/master/Documentation/REST%20API.md) for all methods.
122
122
123
123
Example of getting list of files:
124
124
@@ -128,10 +128,10 @@ let query = PaginationQuery()
128
128
.stored(true)
129
129
.ordering(.sizeDESC)
130
130
.limit(5)
131
-
// Make files list object
131
+
// Make a list of files object
132
132
let filesList = uploadcare.list()
133
133
134
-
// Get files list
134
+
// Get file list
135
135
filesList.get(withQuery: query) { (list, error) in
0 commit comments