We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26563ac + 26faa3b commit 8b46d66Copy full SHA for 8b46d66
js/jquery.fileupload-ui.js
@@ -62,6 +62,11 @@
62
// The expected data type of the upload response, sets the dataType
63
// option of the $.ajax upload requests:
64
dataType: 'json',
65
+
66
+ // Error and info messages:
67
+ messages: {
68
+ unknownError: 'Unknown error'
69
+ },
70
71
// Function returning the current number of files,
72
// used by the maxNumberOfFiles validation:
@@ -212,7 +217,7 @@
212
217
if (data.errorThrown !== 'abort') {
213
218
var file = data.files[index];
214
219
file.error = file.error || data.errorThrown ||
215
- true;
220
+ data.i18n('unknownError');
216
221
deferred = that._addFinishedDeferreds();
222
that._transition($(this)).done(
223
function () {
0 commit comments