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

Validate image URL file size and/or dimensions #16

Open
jaaneh opened this issue Sep 29, 2022 · 1 comment
Open

Validate image URL file size and/or dimensions #16

jaaneh opened this issue Sep 29, 2022 · 1 comment

Comments

@jaaneh
Copy link
Collaborator

jaaneh commented Sep 29, 2022

A limit of 200kb should suffice for the file size. This can (probably) be checked via the Content-Length header. There's also libraries that could do this. Like this or this for examples.

We may also benefit of limiting the width and height of the image.

@Fermain
Copy link
Contributor

Fermain commented Oct 12, 2022

A very generous proposal:

  • Max width 1600px
  • Max height 1600px
  • Max weight 256Kb

We can use the same limits if/when we add uploads.

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

2 participants