【发布时间】:2016-04-12 11:42:08
【问题描述】:
我正在尝试将文件发送到 aws 服务器。我正在使用有角的dropzone。我想知道如何发送文件。我有我的 aws 凭据,但不确定如何提出请求。
当我将文件放入 dropzone 时,我会不断收到 'POST https://url.com/ 400(错误请求)'
angular.extend($scope, {
dropzoneConfig: {
'options': {
'url':'https://url.com',
},
'eventHandlers': {
'sending': function(file, formData, xhr) {
console.log('sending');
},
'success': function(file, response) {
console.log('sent');
},
'error': function() {
console.log('error');
$scope.hideDropzone = true;
}
}
}
});
【问题讨论】:
标签: javascript angularjs dropzone.js