Skip to content

Commit 4abc924

Browse files
authored
SOLR-18153: Fix File Upload in Documents Tab of Admin UI (#4204)
1 parent 7a8b54c commit 4abc924

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: Fixed file upload in the Documents tab of Admin UI.
2+
type: fixed
3+
authors:
4+
- name: Eric Pugh
5+
links:
6+
- name: SOLR-18153
7+
url: https://issues.apache.org/jira/browse/SOLR-18153

solr/webapp/web/js/angular/services.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ solrAdminServices.factory('System',
166166
$http.post(url, fd, {
167167
transformRequest: angular.identity,
168168
headers: {'Content-Type': undefined}
169-
}).success(success).error(error);
169+
}).then(function(response) {
170+
success(response.data);
171+
}, function(response) {
172+
error(response.data);
173+
});
170174
}
171175
})
172176
.filter('splitByComma', function() {

0 commit comments

Comments
 (0)