Skip to content

Commit f649414

Browse files
author
Stephen Potter
committed
remove unnecessary coment
1 parent a4014c7 commit f649414

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ios/VydiaRNFileUploader.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)