Unable to resize images after uploading

Ok, I’ve found the :bug: . It happens that IO.size is cached and while we were actually downsizing the image, the algorithm was always checking the same file size… Thus resulting in an error when uploading a file larger than the image size limit…

https://github.com/discourse/discourse/commit/827ea641b04396e2cc3f5c8298c3ad475b1a4eff

3 Likes