Skip to content

Commit 8d06e9c

Browse files
author
Guy Blank
committed
fix file exists check
1 parent 9c76911 commit 8d06e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNFetchBlobRequest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options
101101

102102
NSString * filepath = [options valueForKey:@"uploadFilePath"];
103103

104-
if (uploadTask && ![[NSFileManager defaultManager] fileExistsAtPath:filepath]) {
104+
if (uploadTask && ![[NSFileManager defaultManager] fileExistsAtPath:[NSURL URLWithString:filepath].path]) {
105105
RCTLog(@"[RNFetchBlobRequest] sendRequest uploadTask file doesn't exist %@", filepath);
106106
callback(@[@"uploadTask file doesn't exist", @"", [NSNull null]]);
107107
return;

0 commit comments

Comments
 (0)