@@ -185,7 +185,7 @@ public struct UploadOptions {
185
185
UploadOptions ( )
186
186
}
187
187
188
- // MARK: Upload Options Initializer
188
+ // MARK: Upload Options Initializers
189
189
190
190
/// - Parameters:
191
191
/// - inputStandardization: options to enable or
@@ -207,6 +207,33 @@ public struct UploadOptions {
207
207
self . eventTracking = eventTracking
208
208
}
209
209
210
+ /// - Parameters:
211
+ /// - eventTracking: event tracking options for the
212
+ /// direct upload
213
+ /// - inputStandardization: options to enable or
214
+ /// disable standardizing the format of the direct
215
+ /// upload inputs, it is requested by default. To
216
+ /// prevent the SDK from making any changes to the
217
+ /// format of the input use ``UploadOptions.InputStandardization.skipped``
218
+ /// - chunkSize: the size of each file chunk in
219
+ /// bytes the SDK sends when uploading, default
220
+ /// value is 8MB
221
+ /// - retriesPerChunk: number of retry attempts
222
+ /// if the chunk request fails, default value is 3
223
+ public init (
224
+ eventTracking: EventTracking = . default,
225
+ inputStandardization: InputStandardization = . default,
226
+ chunkSizeInBytes: Int ,
227
+ retryLimitPerChunk: Int
228
+ ) {
229
+ self . eventTracking = eventTracking
230
+ self . inputStandardization = inputStandardization
231
+ self . transport = Transport (
232
+ chunkSizeInBytes: chunkSizeInBytes,
233
+ retryLimitPerChunk: retryLimitPerChunk
234
+ )
235
+ }
236
+
210
237
}
211
238
212
239
// MARK: - Extensions
0 commit comments