I wanted to pass multipart/formdata through a $resource in angular in order to post an image. I followed the magic answer founded here AngularJS: Upload files using $resource (solution)
But this solution apply for all requests in my modules. And I want it to apply only for one $resource or two. If possible I want to keep JSON for the others requests. In fact I'm using nested properties and I would like to keep it.
Is here any way to do it ?
Thanks