I can't upload image on my meanjs app, I don't know why but I can't nake the post to express.
I followed this example: Adding a picture to the MEAN.JS sample with Angular-file-upload
But my service in angular use $resource to make a post, ex:
'use strict';
angular.module('eventos').factory('Eventos', ['$resource',
function($resource){
return $resource('events/eventId', {eventId:'@_id'
},{
update:{
method:'PUT'
}
});
}
]);
There are other approach?
I tried to find examples or tutorials but there isn't, could you help?
Thanks ;)