I am using Angular $ resource to upload a file. I need to set the encoding to mulipart / form-data, but I still cannot set enctype to $ resource.
Is it possible? In other words, can I use $ resource to upload files, or do I need to go deeper and use $ http, changing the header using the config argument?
What is the correct way to use POSTing form multipart / form-data in AngularJS?
source share