mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Merge pull request #2676 from wub/master
Improving uploader "too big" error to help with debug
This commit is contained in:
commit
de4ef7ed83
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@
|
||||||
$dropzone.trigger("uploadfailure", [data.result]);
|
$dropzone.trigger("uploadfailure", [data.result]);
|
||||||
$dropzone.find('.js-upload-progress-bar').addClass('fail');
|
$dropzone.find('.js-upload-progress-bar').addClass('fail');
|
||||||
if (data.jqXHR.status === 413) {
|
if (data.jqXHR.status === 413) {
|
||||||
$dropzone.find('div.js-fail').text("The image you uploaded was too big.");
|
$dropzone.find('div.js-fail').text("The image you uploaded was larger than the maximum file size your server allows.");
|
||||||
} else if (data.jqXHR.status === 415) {
|
} else if (data.jqXHR.status === 415) {
|
||||||
$dropzone.find('div.js-fail').text("The image type you uploaded is not supported. Please use .PNG, .JPG, .GIF, .SVG.");
|
$dropzone.find('div.js-fail').text("The image type you uploaded is not supported. Please use .PNG, .JPG, .GIF, .SVG.");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue