I'm using angularFileUpload module in my project. It working fine but I want to sending additional data with my file/s but I can't.
var uploader = $scope.uploader = Upload.upload({
url: 'api/photos/upload/propertyphoto',
type:'post',
data:{name:'my name'},
headers:{
csrf_token:CSRF_TOKEN,
'X-XSRF-TOKEN':X_XSRF_TOKEN
}
});
Photo uploading working fine. but when I receive the data using $_POST['name'] thats does not work.