Skip to content

Commit 472fbc8

Browse files
authored
Merge pull request #82 from huanguolin/master
fix upload file failed with url prefix "file://"
2 parents 0016cc4 + 11d1acf commit 472fbc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/ReactNativeBlobUtilReqBuilder.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ +(void) buildOctetRequest:(NSDictionary *)options
115115
if([body hasPrefix:FILE_PREFIX]) {
116116
__block NSString * orgPath = [body substringFromIndex:[FILE_PREFIX length]];
117117
orgPath = [ReactNativeBlobUtilFS getPathOfAsset:orgPath];
118+
orgPath = [[NSURL URLWithString:orgPath] path];
118119
if([orgPath hasPrefix:AL_PREFIX])
119120
{
120121

0 commit comments

Comments
 (0)