Filesize limit for logoupload (#2522)

* add readable byts helper function

* adjust wording for logo upload

* limit file size to 2 MB

* remove log

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
André Rusakow
2022-12-29 00:41:49 +01:00
committed by GitHub
parent 3819335090
commit 05c8ce223b
3 changed files with 26 additions and 2 deletions

View File

@ -111,7 +111,7 @@ export const TEXTFIELD_PROPS_LOGO = {
maxLength: 255,
placeholder: '/img/mylogo.png',
label: 'Logo',
tip: 'Upload your logo if you have one. We recommend that you use a square image that is at least 256x256. SVGs are discouraged as they cannot be displayed on all social media platforms.',
tip: 'Upload your logo if you have one (max size 2 MB). We recommend that you use a square image that is at least 256x256. SVGs are discouraged as they cannot be displayed on all social media platforms.',
};
export const TEXTFIELD_PROPS_ADMIN_PASSWORD = {
apiPath: API_STREAM_KEY,