Answers for "enctype= multipart/form-data angular"

4

enctype= multipart/form-data

enctype="multipart/form-data"
Posted by: Guest on November-03-2020
1

angular headers for enc type

this.uploadFileToUrl = function(file, uploadUrl){
        var fd = new FormData();
        fd.append('file', file);
        $http.post(uploadUrl, fd, {
            transformRequest: angular.identity,
            headers: {'Content-Type': undefined}
        })
        .success(function(){
        })
        .error(function(){
        });
    }
Posted by: Guest on June-06-2020

Code answers related to "enctype= multipart/form-data angular"

Browse Popular Code Answers by Language