1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 03:18:23 +00:00

check file size before upload file via upload link

This commit is contained in:
lian
2022-05-11 17:40:34 +08:00
parent ac081238f2
commit d7437d0245
3 changed files with 10 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ class SharedUploadLink extends React.Component {
<Fragment>
<ol className="small text-gray">
<li className="tip-list-item">{gettext('Folder upload is limited to Chrome, Firefox 50+, and Microsoft Edge.')}</li>
{maxUploadFileSize && <li className="tip-list-item">{gettext('File size should be smaller than {max_size_placeholder}.').replace('{max_size_placeholder}', maxUploadFileSize)}</li>}
{maxUploadFileSize && <li className="tip-list-item">{gettext('File size should be smaller than {max_size_placeholder}M.').replace('{max_size_placeholder}', maxUploadFileSize)}</li>}
</ol>
<div id="upload-link-drop-zone" className="text-center mt-2 mb-4">
<span className="sf3-font sf3-font-upload upload-icon"></span>