standardebooks / web

The source code for the Standard Ebooks website.
https://standardebooks.org
Creative Commons Zero v1.0 Universal
236 stars 66 forks source link

Fix typo when checking artwork upload image size #322

Closed jobcurtis closed 9 months ago

jobcurtis commented 9 months ago

I think this is what is causing the upload exceptions mentioned on the mailing list. It's currently throwing an exception if the upload size is greater than 0 bytes.

colagrosso commented 9 months ago

The fix looks right and it corrects the upload error for me locally.

acabal commented 9 months ago

I think the error here was that I needed to copy the logic from the PUT section, otherwise there might not be an error when there is no file submitted. Fixed now in master.