Darrell Wu created CB-12968:
-------------------------------
Summary: 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, cordova-windows
Affects Versions: [email protected]
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
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: [email protected]
For additional commands, e-mail: [email protected]