Question/Issue:
我得到了一个权限错误,执行以下操作:
(注意:我尝试过使用videoData[0].fullPath、videoData[0].localURL和videoData[0].toURL(),就像docs建议的那样,这对我来说没有意义,但都失败了。)
$cordovaCapture.captureVideo(options).then(function(videoData) {
// Video Captures works, however when I try to upload I get permission error below.
$cordovaFileTransfer.upload(baseUrl + '/api/users/upload', videoData[0].fullPath, options, true)
.then(function(result) {
// this never triggers
}, function(err) {
// here I get permission open failed:EACCES (Permission denied)
$scope.debug= err;
});
});我是不是错过了一步?我测试了我的API,它可以很好地处理上传时使用邮递员。我希望它能提示我使用新的权限模型来询问是否希望它允许它访问我的存储,但是它从来没有实现过这一点。
任何帮助都是非常感谢的。
发布于 2016-09-13 17:05:17
我也尝试过同样的方法,而且在Android6.0中运行得很好
<acess origin="YOUR_SERVER_URL"/>' /*Network accesss enable*/ <access origin="http://*/*"/>
<access origin="https://*/*"/>https://stackoverflow.com/questions/39417214
复制相似问题