this post was submitted on 10 Mar 2025
6 points (100.0% liked)

Lemmy Support

4758 readers
19 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I see this error when I'm trying to upload an icon image for a community I've recently created:

{"data":{"error":"pictrs_response_error","message":"Your account is too new to upload images"},"state":"success"}

I suppose, if the state of upload was success, and assuming the API output is correct, that the image either got uploaded or got denied after upload.
It seems like we can do an improvement if there is a bug, that we should do perm check before image upload happens, this way, we can save bandwidth (i mean its negligible but i dont know if it happens in other places like image posts etc.).
And we can prevent useless upload/bandwidth usage (which i dont think happens in this case) and if this doesnt happen, then the API has a bug of giving a false status message? Just discussing here before raising an enhancement issue on the github repo. The bug is either of the two cases, I'm not sure.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 hour ago* (last edited 1 hour ago)

https://github.com/LemmyNet/lemmy/blob/96e4621cb800fd5468fdd2294a75a6bceec76a28/crates/routes/src/images/upload.rs#L83

No age checks are being done, so you are correct.

HOWEVER, this is not implemented in Lemmy at all. The error you see is a custom error message created by the lemm.ee team.

[–] [email protected] 1 points 2 hours ago (1 children)

Lemm.ee prevents image uploads for new users, you can maybe ask another user to add it for you

[–] [email protected] 2 points 2 hours ago (1 children)

that's not the issue here, i'm talking about the technical bug, I do understand that i am not yet qualified for image uploads.

[–] [email protected] 2 points 2 hours ago (1 children)

Oh okay, sorry I misread that 😄

[–] [email protected] 1 points 2 hours ago