this post was submitted on 10 Jul 2023
7 points (100.0% liked)

sdfpubnix

1298 readers
1 users here now

Fans of SDF

founded 1 year ago
MODERATORS
 

Hi,

I just tried to upload an image to a (remote) community via the sdf instance and got a JSON syntax error message.

Also tried using Jerboa and got a "network error".

Is something broken?

Thanks

top 9 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (2 children)
[–] [email protected] 2 points 1 year ago (1 children)

I don't know if it's relevant, but I was posting to feddit.uk.

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

Is there a file size limit?

[–] [email protected] 1 points 1 year ago

There appears to be a 1MB(?) upload limit. See my reply below.

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

I had the same thing happen a couple days ago, trying to upload an image to lemmy.ca from this account.

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

Try to compress it. So far all that I compressed below 1MB went through, but I don't know what the actual limit may be.

[–] [email protected] 1 points 1 year ago (1 children)

I was able to post an image by making it smaller, so yes, there appears to be some kind of limit.

That's going to be a pain for users. Wouldn't it be better to allow a larger upload and have the server scale it down?

At the very least, a proper error message, instead of a JSON parsing error!

[–] [email protected] 1 points 1 year ago (1 children)

I'd rather not see that done on server side.

Instead it could be already implemented in the website so that you only actually upload the processed image.

[–] [email protected] 3 points 1 year ago

If it's possible to resize an image on the client side, then whatever, but I can't imagine getting "normals" on board with lemmy if we are giving them an obscure error message and (if they figure out what happened) then asking them to resize images manually.