Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Won't Fix
-
cordova@7.0.0
-
None
-
Windows 10 with Visual Studio 2015
Description
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).
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); }