diaspora/diaspora

Trying to add a too large image file in the desktop view does nothing.

Opened this issue · 1 comments

Something's broken. No resize happens, but also no spinner, no error message, nothing. I can see the browser allocating some blobs, but nothing happens at all, so that's fun. We should probably push #8071 to get rid of the current brokenness.

Looking at a browser profile, it actually appears it's doing something - loading the image into a canvas, and then requesting a data url multiple times. I have no idea why we do that - it ain't smart, we should indeed post the blob to the server, not trying to allocate some gigantomanic data uri containing the image. I couldn't find the callee's function name (_generateScaledImage) in our code, so this is probably an upstream dep.