Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-18153: Fix File Upload in Documents Tab of Admin UI (#4204)

Eric Pugh4abc924e0ce9
diff --git a/changelog/unreleased/SOLR-18153.yml b/changelog/unreleased/SOLR-18153.yml
new file mode 100644
index 00000000000..536c6b47f2d
--- /dev/null
+++ b/changelog/unreleased/SOLR-18153.yml
@@ -0,0 +1,7 @@
+title: Fixed file upload in the Documents tab of Admin UI.
+type: fixed
+authors:
+ - name: Eric Pugh
+links:
+ - name: SOLR-18153
+ url: https://issues.apache.org/jira/browse/SOLR-18153
diff --git a/solr/webapp/web/js/angular/services.js b/solr/webapp/web/js/angular/services.js
index 9c6ea9fb799..98e7e37d9ba 100644
--- a/solr/webapp/web/js/angular/services.js
+++ b/solr/webapp/web/js/angular/services.js
@@ -166,7 +166,11 @@ solrAdminServices.factory('System',
$http.post(url, fd, {
transformRequest: angular.identity,
headers: {'Content-Type': undefined}
- }).success(success).error(error);
+ }).then(function(response) {
+ success(response.data);
+ }, function(response) {
+ error(response.data);
+ });
}
})
.filter('splitByComma', function() {