joltup/rn-fetch-blob

Error: No such file - IOS not working

ahmetcangurel opened this issue · 5 comments

'm trying to select the file with the react native document picker and convert the pdf file but

[Error: No such file '/var/mobile/Containers/Data/Application/362A6BC9-2BDA-404C-9288-77B50ED76E0D/Documents/Verkstedha%CC%8Andbok-capri-2.8i-1981.pdf']

I am getting such an error. Android side works fine

code

Do i need to change my path for document and how will i do?

Same issue

on some pdf files have no issue

no some it give this error message.
both are present at same location

Same issue

on some pdf files have no issue

no some it give this error message. both are present at same location

I don't remember how I solved it, but special characters in the file name may be causing problems.

Hi Team, I Have same issue: What is exact cause.

Fatal Exception: NSInternalInconsistencyException
-[UIDocumentPickerViewController initForExportingURLs:asCopy:] must be called with a URL pointing to an existing file: Error Domain=NSCocoaErrorDomain Code=260 "The file “test.pdf” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/6B7EEC85-DBE1-44D8-88C4-A2D89DBFEAF4/Library/Caches/D127050460-Comprehensive-Policy.pdf, NSFilePath=/var/mobile/Containers/Data/Application/6B7EEC85-DBE1-44D8-88C4-A2D89DBFEAF4/Library/Caches/test.pdf, NSUnderlyingError=0x283e52730 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Same issue
on some pdf files have no issue
no some it give this error message. both are present at same location

I don't remember how I solved it, but special characters in the file name may be causing problems.

yes i found the problem was in file name.
special character in file name was causing the issue
i used let decodeUri= decodeUri(uri)

Hi Team, I Have same issue: What is exact cause.

Fatal Exception: NSInternalInconsistencyException -[UIDocumentPickerViewController initForExportingURLs:asCopy:] must be called with a URL pointing to an existing file: Error Domain=NSCocoaErrorDomain Code=260 "The file “test.pdf” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/6B7EEC85-DBE1-44D8-88C4-A2D89DBFEAF4/Library/Caches/D127050460-Comprehensive-Policy.pdf, NSFilePath=/var/mobile/Containers/Data/Application/6B7EEC85-DBE1-44D8-88C4-A2D89DBFEAF4/Library/Caches/test.pdf, NSUnderlyingError=0x283e52730 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

special character in file name was causing the issue
i used let decodeUri= decodeUri(uri)