[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] Display server-side 'Feedback:error' messages when uploading files via...

"Merci Jacob \(@mercihabam\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <694027db4d181_2aac40b8596d1@gitlab-sidekiq-low-urgency-cpu-bound-v2-79d645d478-98g42.mail>

Merci Jacob pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
7a435143 by Merci Jacob at 2025-12-15T15:23:04+00:00
[FIX] Display server-side 'Feedback:error' messages when uploading files via the tracker files field
---
* [FIX] Display server-side 'Feedback:error' messages when uploading files via the tracker files field

See merge request tikiwiki/tiki!9234


(cherry picked from commit 34e2f78a8524fa549b1aeb46b90406baf4f6ec1a)

f61273be [FIX] Display server-side 'Feedback:error' messages when uploading files via...

Co-authored-by: Merci Jacob <[email protected]>
- - - - -


1 changed file:

- lib/jquery_tiki/files.js


Changes:

=====================================
lib/jquery_tiki/files.js
=====================================
@@ -48,6 +48,8 @@
 
     FileList = function (options) {
         var $list = $(options.list);
+
+        this.list = $list;
         this.clearErrors = function () {
             $list.find('.text-danger').remove();
         };
@@ -174,6 +176,10 @@
                         error: function (jqXHR, textStatus, errorThrown) {
                             progressBar.updateSegment(k, 0, 0);
                             fileList.addError(file, errorThrown);
+                            const tikiFeedback = jqXHR.getResponseHeader('X-Tiki-Feedback');
+                            if (tikiFeedback) {
+                                fileList.list.append(decodeURIComponent(tikiFeedback));
+                            }
                         },
                         complete: function (data, textStatus) {
                             $(window).dequeue('process-upload');



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7a43514314aab545bdbde66168aa041bd2df17d0

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7a43514314aab545bdbde66168aa041bd2df17d0
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.