In client side I send a request with $http:
Upload.upload({
url: 'http://localhost:3000/upload',
fields: {
'username': $scope.username
},
file: file
})
In server side, this is the route:
app.route('/upload')
.get(function (req) {
for (var key in req)
console.log(key);
})
But I cannot see any key name file in req? What is the reason for this difference between them two?