[
https://issues.apache.org/jira/browse/CB-12839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030923#comment-16030923
]
Nikita Matrosov commented on CB-12839:
--------------------------------------
[~bhwatts], I've tried to reproduce this error using your sample project w/o
success. Sporadically, I'm getting an error after audio file is being recorded:
'A media source cannot go from the stopped state to the paused state.', not
sure what's causing it, but anyway, the audio file is created and I can upload
it. Also, it seems to me that you forgot to add device capability to access
microphone (w/o this capability I get the error: 'Access denied').
Could you please confirm that you don't get any information in error callback
except for code?
Does this error reproduce if you run application w/o VS2015?
> 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
> Affects Versions: [email protected]
> Environment: Windows 10 with Visual Studio 2015
> Reporter: Brian Watts
> Priority: Blocker
> Labels: windows
> Attachments: 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
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]