AngularJS photo-upload and mongodb