File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ - (void)copyAssetToFile: (NSString *)assetUrl completionHandler: (void(^)(NSStri
158158 if (requestUrl == nil ) {
159159 @throw @" Request cannot be nil" ;
160160 }
161-
161+
162162 NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL: requestUrl];
163163 [request setHTTPMethod: method];
164164
@@ -197,14 +197,13 @@ - (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- // using uploadTaskWithStreamedRequest instead of uploadTaskWithRequest to ensure more than 2 video uploads at the same time
201200 uploadTask = [[self urlSession ] uploadTaskWithStreamedRequest: request];
202201 } else {
203202 if (parameters.count > 0 ) {
204203 reject (@" RN Uploader" , @" Parameters supported only in multipart type" , nil );
205204 return ;
206205 }
207-
206+
208207 uploadTask = [[self urlSession ] uploadTaskWithRequest: request fromFile: [NSURL URLWithString: fileURI]];
209208 }
210209
You can’t perform that action at this time.
0 commit comments