4

Attempting to add a large (15MB) image to a post fails with no error message.

When I try to drag and drop the image into the "Add a picture" dialog, it just stays uploading forever. In Chrome's network tools, I see that the post to https://meta.stackoverflow.com/upload/image has been redirected to https://meta.stackoverflow.com/error?aspxerrorpath=/upload/image.

When I try the standard browse to add, the entire window is redirected to https://meta.stackoverflow.com/error?aspxerrorpath=/upload/image.

Shouldn't I see an error message letting me know the image is too big?

For reference, here's the image I was trying to add. (No idea why it was 15MB. I guess the Awesome Screenshot Chrome extension isn't so awesome.)

marked as duplicate by ShaWiz, Martijn Pieters, Hugo Dozois, Travis J, hims056 Nov 20 '13 at 1:18

This question was marked as an exact duplicate of an existing question.

  • That image must be broken. No way it can legitimately be 15 MB – Pëkka Nov 19 '13 at 23:20
  • @probablyPekka It must be the browser extension I was using to create the screenshot. – Joshua Dwire Nov 19 '13 at 23:20
  • Just tried adding an image that was legitimately 17.9 MB (lots of random noise), and it had the same issue. – Joshua Dwire Nov 19 '13 at 23:24
  • 1
    Try 8-bit PNG. No screen shot should be that large, and nobody is going to want to download it even if you could upload it. – Aaron Bertrand Nov 19 '13 at 23:25
  • An image size like this is beyond what you can reasonably expect a web service to accept, but agreed there should be an error message. – Pëkka Nov 19 '13 at 23:25
  • 1
    @AaronBertrand The point isn't that it should accept the image. It should tell me that it's too big. I honestly didn't realize the image was big until I started to submit a bug report and thought to see if other images would work. – Joshua Dwire Nov 19 '13 at 23:26
  • @ShaWizDowArd I did get that error, once, but not when I used drag-and-drop. In Firefox, I saw the error briefly but was quickly redirected to the error page. – Joshua Dwire Nov 19 '13 at 23:27
  • @Joshua oh I agree with that. I just read the first line in your post and it smelled wrong. – Aaron Bertrand Nov 19 '13 at 23:28
5

That's by design on imgur's side:

The maximum non-animated file size you can upload is 10MB. However, if the image is over 1MB then it will automatically be compressed or resized to 1MB, for better viewing on the net. The maximum animated file size (both GIF and PNG) is 2MB.

However, the fact we don't get such message and instead it fails silently is a bug on SE side that was already reported here.

Until (if) it's fixed, whenever image upload fails here without proper reason, try uploading directly to http://imgur.com and see what happens.

Not the answer you're looking for? Browse other questions tagged .