From 3b31ea085f07ad511359e016f53a98b81b05cf38 Mon Sep 17 00:00:00 2001 From: pwlin Date: Sun, 18 May 2014 14:18:49 +0200 Subject: [PATCH] Update FileOpener2.m --- src/ios/FileOpener2.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ios/FileOpener2.m b/src/ios/FileOpener2.m index 9df9a4b..eaebace 100644 --- a/src/ios/FileOpener2.m +++ b/src/ios/FileOpener2.m @@ -23,7 +23,9 @@ //NSLog(@"path %@, uti:%@", path, uti); NSURL *fileURL = nil; - fileURL = [NSURL URLWithString:path]; + //fileURL = [NSURL URLWithString:path]; + fileURL = [NSURL fileURLWithPath:path]; + localFile = fileURL.path; dispatch_async(dispatch_get_main_queue(), ^{