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
/// This is useful for when you want to import a file from a different source, such as a third party storage service.
142
+
///
143
+
/// If you wish to upload a file and check for its processing status, please refer to ` public func createAssembly(steps: andUpload files: completion:)`
144
+
///
145
+
/// - Parameter steps: The steps of an Assembly.
146
+
/// - Parameter expectedNumberOfFiles: The number of expected files to upload to this assembly
147
+
/// - Parameter customFieldsObject: Encodable object that will be passed to the assembly creation
@@ -159,6 +185,33 @@ public final class Transloadit {
159
185
completion(transloaditResult)
160
186
}
161
187
}
188
+
189
+
/// Create an assembly, do not upload a file.
190
+
///
191
+
/// This is useful for when you want to import a file from a different source, such as a third party storage service.
192
+
///
193
+
/// If you wish to upload a file and check for its processing status, please refer to ` public func createAssembly(templateId: andUpload files: completion:)`
194
+
///
195
+
/// - Parameters:
196
+
/// - templateId: The templateId to use for this assembly
197
+
/// - expectedNumberOfFiles: The number of expected files to upload to this assembly
198
+
/// - customFieldsObject: JSON-encodable dictionary of custom parameters to pass to the assembly creation
@@ -237,6 +340,78 @@ public final class Transloadit {
237
340
pollers[files]= poller
238
341
return poller
239
342
}
343
+
344
+
/// Create an assembly and upload one or more files to it using the TUS protocol.
345
+
///
346
+
/// Returns a poller that you can use to check its processing status. You don't need to retain the poller, the `TransloadIt` instance will do that for you.
347
+
///
348
+
/// TIP: You can set transloadit's `delegate` for details about the file uploading.
349
+
/// - Parameters:
350
+
/// - steps: The steps of an assembly.
351
+
/// - files: Paths to the files to upload
352
+
/// - customFields: JSON-encodable dictionary of extra parameters to send along with assembly creation
353
+
/// - completion: completion handler, called when upload is complete
354
+
///
355
+
/// Below you can see how you can create an assembly and poll for its upload status
356
+
///```swift
357
+
///
358
+
/// transloadit.createAssembly(steps: [resizeStep], andUpload: files, completion: { assemblyResult in
0 commit comments