Skip to content

Commit 8b46d66

Browse files
committed
Merge pull request blueimp#3258 from tkleinhakisa/master
Add error message for unknown errors
2 parents 26563ac + 26faa3b commit 8b46d66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/jquery.fileupload-ui.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
// The expected data type of the upload response, sets the dataType
6363
// option of the $.ajax upload requests:
6464
dataType: 'json',
65+
66+
// Error and info messages:
67+
messages: {
68+
unknownError: 'Unknown error'
69+
},
6570

6671
// Function returning the current number of files,
6772
// used by the maxNumberOfFiles validation:
@@ -212,7 +217,7 @@
212217
if (data.errorThrown !== 'abort') {
213218
var file = data.files[index];
214219
file.error = file.error || data.errorThrown ||
215-
true;
220+
data.i18n('unknownError');
216221
deferred = that._addFinishedDeferreds();
217222
that._transition($(this)).done(
218223
function () {

0 commit comments

Comments
 (0)