Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12968

Cordova fileTransfer for windows error code 1:The system cannot find the file specified

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Won't Fix
    • Affects Version/s: cordova@7.0.0
    • Fix Version/s: None
    • Labels:
    • Environment:

      Windows 10 with Visual Studio 2017
      Cordova Version 7.0.1
      Windows 5.0.0
      cordova-plugin-file-transfer 1.6.3
      Windows 10 UWP

      Description

      I'm getting an error code :1 when i try to upload a file in window 10 desktop using the file transfer plugin. The message in the console is as follows

      0x80070002 - JavaScript runtime error: The system cannot find the file specified.
      
      

      I know the file exists because i have an img element that displays the file and i previously picked the file from the Photo Library

      e.g <img alt="Thumbnail" src="ms-appdata:///local/camera_cordova_temp_return%20(26).jpg">
      

      The stacktrace tell me that the error is cause by the following line in FileTransferProxy.js

      Windows.Storage.StorageFile.getFileFromPathAsync(filePath)
      

      I can't figure out why i am getting the error code: 1 0x80070002 - JavaScript runtime error: The system cannot find the file specified.
      So i guess its a bug.

        Attachments

          Activity

            People

            • Assignee:
              purplecabbage Jesse MacFadyen
              Reporter:
              dwu Darrell Wu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: