0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Improving uploader "too big" error to help with debug

#994
This commit is contained in:
Jarrod Mosen 2014-05-02 08:35:49 +12:00
parent b192dd9303
commit 1153c3ffd1

View file

@ -100,7 +100,7 @@
$dropzone.trigger("uploadfailure", [data.result]);
$dropzone.find('.js-upload-progress-bar').addClass('fail');
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) {
$dropzone.find('div.js-fail').text("The image type you uploaded is not supported. Please use .PNG, .JPG, .GIF, .SVG.");
} else {