Looking for a way to pass multipart/formdata through a $resource in Angular so I can post an image. I discovered a helpful solution on this Stack Overflow thread.
However, the solution applies to all requests within my modules, and I only want it to apply to one or two specific $resources. Ideally, I would like to maintain JSON for the rest of the requests as I am working with nested properties that I need to preserve.
Is there any method to achieve this selectively?
Thanks!