Commit bcda6a33 authored by Benni Mack's avatar Benni Mack Committed by Oliver Bartsch
Browse files

[BUGFIX] Show proper error message in drag uploader

When uploading an invalid file (or a folder),
the message within the filelist now does not
contain empty "()" (for the status text) anymore.

Resolves: #94691
Releases: master
Change-Id: I8fcf62c7bd8a7ef3413e44e787a56fb289e73b83
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70184

Tested-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent fb74d662
...@@ -580,8 +580,10 @@ class FileQueueItem { ...@@ -580,8 +580,10 @@ class FileQueueItem {
const error = $(response.responseText); const error = $(response.responseText);
if (error.is('t3err')) { if (error.is('t3err')) {
this.$progressPercentage.text(error.text()); this.$progressPercentage.text(error.text());
} else if (response.statusText) {
this.$progressPercentage.text('(' + response.statusText + ') ');
} else { } else {
this.$progressPercentage.text('(' + response.statusText + ')'); this.$progressPercentage.text('');
} }
this.$row.addClass('error'); this.$row.addClass('error');
this.dragUploader.decrementQueueLength(); this.dragUploader.decrementQueueLength();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment