You are reading a single comment by @aggi and its replies. Click here to read the full conversation.
  • Is it possible to get a more enlightening error message when people attempt to upload pictures larger than 3MB. A lot of mobiles have default camera pictures that are bigger than 3MB and "Internal Server Error" doesn't really give much clue as to what the problem is.

  • I assume that's what was causing me trouble just now. It seemed to hang for about 5 mins before returning with a 500. Although that could be partly due to a poor connection.

    A quick solution might be to just set nginx to reject large uploads?

  • Oh, is that the error? Must've had a regression since it was written as we originally said "image too large".

    Though it occurs to me now that maybe I should stop caring.

    I still need to guarantee a max size, by dimensions and resolution.... i.e. no bigger than 1200px wide or 1200px high... but maybe I don't care about keeping the original file at all? I mean, it's not like I promised that Microcosm was an image hosting service.

    So perhaps the fix, rather than show the error message, is to allow all large image uploads but to automatically reduce the dimensions and/or resolution to bring it within a "good enough for the web" size. This would be least inconvenient to you all, and wouldn't use an excessive amount of resource for me.

About

Avatar for aggi @aggi started