Hi guys,
i have angular controller
<input type="file" id="img" name="img" ng-model="modelInstance.img"/>
params:modelInstance,
data:files,
headers: {'Content-Type': 'multipart/form-data'}
}).success(function(data){
if(data.bindingFailure!=false){
window.location = "#/article/list";
}else{
$scope.errors = data.defaultMessage;
}
})
and then grails controller
def save() {
def f = request.getFile(request.JSON.params.img)
}
and get nothing with params.img, when i println request.JSON.params.img show null
how can i bind params.img from angular to grails? thanks