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

[jira] [Closed] (CB-12839) Cordova FileTansfer fails with error code 2 when uploading on Windows 10

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

jcesarmobile closed CB-12839.
-----------------------------
    Resolution: Won't Fix

The plugin has been deprecated, so this won't be fixed

> Cordova FileTansfer fails with error code 2 when uploading on Windows 10
> ------------------------------------------------------------------------
>
>                 Key: CB-12839
>                 URL: https://issues.apache.org/jira/browse/CB-12839
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-file-transfer (DEPRECATED)
>    Affects Versions: cordova@7.0.0
>         Environment: Windows 10 with Visual Studio 2015
>            Reporter: Brian Watts
>            Priority: Blocker
>              Labels: windows
>         Attachments: Screen Shot 2017-06-05 at 10.59.34 AM.png, Screen Shot 2017-06-15 at 2.51.59 PM.png, Screen Shot 2017-06-15 at 2.52.11 PM.png, test2.zip
>
>
> I've been stuck on this for days.  I am pretty sure that it is a bug as I have tried every possible combination of options in the upload call.  Furthermore, the same code works for iOS, Android, Windows Phone 8.1, Windows Phone 10 and Windows Desktop 8.1. Windows Desktop 10 always fails with error code 2 (syntax error).  I have also made tests with a minimal application that just tests the upload function (plus a small portion that creates the file to upload).
> {code}
> function upload_file() {
>     var options = new FileUploadOptions();
>     options.fileKey = "upfile";
>     options.mimeType = 'm4a';
>     var src = "ms-appdata:///temp/myalert.m4a";
>     var ft = new FileTransfer(); 
>     options.fileName = "myalert.m4a";
>     options.chunkedMode = false;
>     var server_name = "http://hp3.xpub.io";
>     ft.upload(src,server_name + "/alerts/upfile.php", upload_success, upload_fail, options);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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