Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Humanize the byte size error on community image upload #1196

Open
fenekku opened this issue Aug 23, 2024 · 0 comments
Open

Humanize the byte size error on community image upload #1196

fenekku opened this issue Aug 23, 2024 · 0 comments

Comments

@fenekku
Copy link
Contributor

fenekku commented Aug 23, 2024

Package version (if known): 13.x (version compatible with InvenioRDM 12)

Describe the bugs

The file size and file size limit shown on the UI when uploading a too big community picture is not human-friendly.

image

It should be:

image

or at least make the display of size consistent with the rest of the UI and human friendly.

The error message doesn't go away once an appropriate picture is uploaded.

It should go away then.

Steps to Reproduce

  1. Go to '/communities//settings'
  2. Click on 'Upload new picture'
  3. Upload a picture bigger than 1MB
  4. See error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant