Comment on Gabby Thomas
aeharding@vger.social 2 months agoHey! Through DM, about a week ago. I’ll copy below (it’s nothing sensitive):
Everything seems pretty great, with the only friction I’m working through is regarding user uploads.
It looks like when using 3rd party clients (like Photon or Voyager’s PWA) and I try to upload an image that is too large to lemm.ee, lemm.ee is not properly setting the CORS header. This means that Photon/Voyager can’t see that lemm.ee is rejecting the upload due to image size. It seems to be working on lemmy.world.
(Please note that Voyager automatically compresses images to fit within 1MB, so it may be best to test with Photon - the same problem can be observed and replicated there.)
lemmy.world:
lemm.ee:
If you have time to take a look, I’d appreciate it! No rush at all.
Xylight@lemm.ee 2 months ago
Just curious, how do you compress images? Is there a web API?
aeharding@vger.social 2 months ago
No API, its just some JS code that resizes in a canvas.