File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -197,8 +197,8 @@ - (void)copyAssetToFile: (NSString *)assetUrl completionHandler: (void(^)(NSStri
197197 NSData *httpBody = [self createBodyWithBoundary: uuidStr path: fileURI parameters: parameters fieldName: fieldName];
198198 [request setHTTPBody: httpBody];
199199
200- // I am sorry about warning, but Upload tasks from NSData are not supported in background sessions.
201- uploadTask = [[self urlSession ] uploadTaskWithRequest : request fromData: nil ];
200+ // using uploadTaskWithStreamedRequest instead of uploadTaskWithRequest to ensure more than 2 video uploads at the same time
201+ uploadTask = [[self urlSession ] uploadTaskWithStreamedRequest : request];
202202 } else {
203203 if (parameters.count > 0 ) {
204204 reject (@" RN Uploader" , @" Parameters supported only in multipart type" , nil );
You can’t perform that action at this time.
0 commit comments