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

Expose pict-rs maximum file size in Lemmy API #5322

Open
5 tasks done
Sjmarf opened this issue Jan 12, 2025 · 2 comments
Open
5 tasks done

Expose pict-rs maximum file size in Lemmy API #5322

Sjmarf opened this issue Jan 12, 2025 · 2 comments
Labels
area: media enhancement New feature or request

Comments

@Sjmarf
Copy link

Sjmarf commented Jan 12, 2025

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

If I upload an image that exceeds the instance's maximum file size limit, I get an error. However, there's no way (that I can tell) of knowing what the limit actually is.

Describe the solution you'd like.

Ideally, the error message would tell you the maximum file size. In addition, it would be nice if the maximum file size could be queried through the API so that a client can display a warning before attempting to upload the image.

Describe alternatives you've considered.

Additional context

No response

@Sjmarf Sjmarf added the enhancement New feature or request label Jan 12, 2025
@Nutomic
Copy link
Member

Nutomic commented Jan 13, 2025

@asonix Does pictrs expose these config values anywhere in the API? I didnt find it in the readme.

@asonix
Copy link
Collaborator

asonix commented Jan 13, 2025

The config values are not exposed, but I can add that pretty easily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: media enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants