diff --git a/frontend/src/pages/upload-link/forbid-upload-list-item.js b/frontend/src/pages/upload-link/forbid-upload-list-item.js index 77de671bb6..bf39555e75 100644 --- a/frontend/src/pages/upload-link/forbid-upload-list-item.js +++ b/frontend/src/pages/upload-link/forbid-upload-list-item.js @@ -1,5 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; +import { Utils } from '../../utils/utils'; import { gettext, maxUploadFileSize } from '../../utils/constants'; const propTypes = { @@ -10,7 +11,7 @@ class ForbidUploadListItem extends React.Component { render() { let { file } = this.props; - let msg = gettext('Please upload files less than {placeholder}M').replace('{placeholder}', maxUploadFileSize); + let msg = gettext('Please upload files less than {placeholder}').replace('{placeholder}', Utils.bytesToSize(maxUploadFileSize * 1000 * 1000)); return (