You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vishal Mishra (JIRA)" <ji...@apache.org> on 2017/11/22 01:16:00 UTC

[jira] [Closed] (CB-12968) Cordova fileTransfer for windows error code 1:The system cannot find the file specified

     [ https://issues.apache.org/jira/browse/CB-12968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vishal Mishra closed CB-12968.
------------------------------
    Resolution: Won't Fix

With the new features introduced in [XMLHttpRequest|https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest], this plugin is not needed any more. Migrating from this plugin to using the new features of [XMLHttpRequest|https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest], is explained in this [Cordova blog post|https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html].

> Cordova fileTransfer for windows error code 1:The system cannot find the file specified
> ---------------------------------------------------------------------------------------
>
>                 Key: CB-12968
>                 URL: https://issues.apache.org/jira/browse/CB-12968
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-file-transfer (DEPRECATED), cordova-windows
>    Affects Versions: cordova@7.0.0
>         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
>            Reporter: Darrell Wu
>            Assignee: Jesse MacFadyen
>            Priority: Blocker
>              Labels: windows
>
> 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
> {code:java}
> 0x80070002 - JavaScript runtime error: The system cannot find the file specified.
> {code}
> 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
> {code:java}
> e.g <img alt="Thumbnail" src="ms-appdata:///local/camera_cordova_temp_return%20(26).jpg">
> {code}
> The stacktrace tell me that the error is cause by the following line in FileTransferProxy.js
> {code:java}
> Windows.Storage.StorageFile.getFileFromPathAsync(filePath)
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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