cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Davidson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-12463) File Transfer FILE_NOT_FOUND error thrown when trying to transfer a file brought into file system using jcesarmobile/FilePicker-Phonegap-iOS-Plugin.
Date Thu, 16 Feb 2017 14:31:42 GMT
Tony Davidson created CB-12463:
----------------------------------

             Summary: File Transfer FILE_NOT_FOUND error thrown when trying to transfer a
file brought into file system using jcesarmobile/FilePicker-Phonegap-iOS-Plugin.  
                 Key: CB-12463
                 URL: https://issues.apache.org/jira/browse/CB-12463
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 6.4.0
         Environment: iOS 10.2.1 on iPhone 6s
            Reporter: Tony Davidson
            Priority: Minor


After successfully bringing a file from iCloud into apps file system using jcesarmobile/FilePicker-Phonegap-iOS-Plugin,
the cordova-plugin-file-transfer throws an intermitent error 'FILE_NOT_FOUND' code: 1.  Sometimes
it works, sometimes it doesn't.

The path of the file being picked is :

/private/var/mobile/Containers/Data/Application/62995A87-99B3-423D-BA11-D5FB0DA44864/tmp/com.dearle-Inbox/4156341_How_to_get_started.pdf.

The pick using filepicker is always successful, resolving the path using cordova-plugin-file
'cordova.file.tempDirectory + fileName' to verify the file exists is always successful.

It is only when I try to use the resolved path in cordova-plugin-file-transfer that I run
into problems.  It is not a constant problem as I was able to upload some successfully sometimes.
 

The problem only occurred when using the path provided by filepicker.  

The workaround was to move the file using cordova-plugin-file, resolve and provide a path
to cordova-plugin-file-transfer to the new file address.





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message