I'm currently facing an issue while trying to send a file to an AWS server using an Angular dropzone. I have my AWS credentials ready, but I am unsure of how to properly make the request.
Every time I attempt to drop the file into the dropzone, I keep receiving an error message saying 'POST 400 (Bad Request)'
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;
}
}
}
});