0
Fork 0
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:
Hannah Wolfe 2014-05-01 22:45:16 +01:00
commit de4ef7ed83

View file

@ -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 {