I'm using Angular's $resource to upload a file. I need to set the encoding to mulipart/form-data, but I can't find anyway to set enctype in $resource.
Is that possible? In other words can $resource be used for file uploading or do I have to go deeper and use $http, modifying the header using the config argument?
What is the right way to go about POSTing a multipart/form-data form in AngularJS?