Discourse.Utilities.getUploadMarkdown = function(upload) { if (Discourse.Utilities.isAnImage(upload.original_filename)) { return ''; } else { return '' + upload.original_filename + ' (' + I18n.toHumanSize(upload.filesize) + ')'; } };