We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c76911 commit 8d06e9cCopy full SHA for 8d06e9c
ios/RNFetchBlobRequest.m
@@ -101,7 +101,7 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options
101
102
NSString * filepath = [options valueForKey:@"uploadFilePath"];
103
104
- if (uploadTask && ![[NSFileManager defaultManager] fileExistsAtPath:filepath]) {
+ if (uploadTask && ![[NSFileManager defaultManager] fileExistsAtPath:[NSURL URLWithString:filepath].path]) {
105
RCTLog(@"[RNFetchBlobRequest] sendRequest uploadTask file doesn't exist %@", filepath);
106
callback(@[@"uploadTask file doesn't exist", @"", [NSNull null]]);
107
return;
0 commit comments