This is an automated email from the ASF dual-hosted git repository.
epugh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 4abc924e0ce SOLR-18153: Fix File Upload in Documents Tab of Admin UI
(#4204)
4abc924e0ce is described below
commit 4abc924e0ce9c0638a41e8c46bd231b6d4f5eafd
Author: Eric Pugh <[email protected]>
AuthorDate: Thu Mar 12 15:27:58 2026 -0400
SOLR-18153: Fix File Upload in Documents Tab of Admin UI (#4204)
---
changelog/unreleased/SOLR-18153.yml | 7 +++++++
solr/webapp/web/js/angular/services.js | 6 +++++-
2 files changed, 12 insertions(+), 1 deletion(-)
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() {