Hi there can't figure out how to add, formdata to my upload request with angular-fileuploader
tried with onBeforeUploadItem, but it dosen't add the data :/
Ctrl
.controller('uplCtrl', function ($scope, $modalInstance, FileUploader) {
var uploader = $scope.uploader = new FileUploader({
url: 'xxxxxxxxxxxxxxx',
});
uploader.onBeforeUploadItem = function(item) {
item.formData.push({some: 'data'});
};
});
At front end i just use the uploader="uploader" multiple
and uploader.uploadAll()
It uploads fine, but just won't add my custom form data