Created
February 6, 2016 03:51
-
-
Save thachnuida/8de2fb819c4ec0c63fbd to your computer and use it in GitHub Desktop.
Restangular Upload File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fd = new FormData(); | |
fd.append('file', vm.selectedLogo); | |
Restangular.one('/api/admin/settings/logo') | |
.withHttpConfig({transformRequest: angular.identity}) | |
.customPOST(fd, '', undefined, {'Content-Type': undefined}) | |
.then(function() { | |
getLogo(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment