6

It appears that uploading large images (over ~4MB) will fail to upload and all you can see in the console is a 500 (Internal Server Error).

GET https://meta.stackexchange.com/error?aspxerrorpath=/upload/image 500 (Internal Server Error)

This should instead display an appropriate error message instead of just hang there. Perhaps warn about size limits of the images too.

I'm using Firefox and Chrome, latest

17
  • Feel free to use this screenshot if that helps you. Jun 24, 2015 at 3:11
  • That's not quite the screenshot I was planning on showing but thanks anyway. I could go directly to Imgur and upload there and link here but then it's not properly linked to SE. Jun 24, 2015 at 3:14
  • You can take a screen shot and upload it to another hosting service, and provide a link for us.
    – Flimzy
    Jun 24, 2015 at 3:58
  • @Flimzy: Yes I know that... but I'd rather not. This sort of problem doesn't need a screenshot to explain it. And if you haven't gotten the hint already, that last line was a bit of a tongue and cheek statement anyway. Jun 24, 2015 at 4:01
  • 1
    Looks related to switching the image upload dialog, can you hard refresh and see if this is still happening?
    – user50049
    Jun 24, 2015 at 4:45
  • @TimPost: No difference. Jun 24, 2015 at 4:50
  • No repro here. What browser? Jun 24, 2015 at 6:19
  • @ShadowWizard: Firefox and Chrome, latest. Jun 24, 2015 at 6:21
  • So it means something on your side is blocking something... hopefully Chris will find some hint in the logs. Can you do all of this with the Network tab of Chrome dev tools open to see if you can see something as well? Jun 24, 2015 at 6:27
  • @JeffMercado I can't find any /upload/image exceptions in our logs, sorry. If you can send request dumps from your F12 tools, that'd be most helpful. Thanks! Jun 24, 2015 at 6:36
  • @ChrisJester-Young: I've added the request data to the post from the failed upload attempts. I'm not sure if this is enough for you. Jun 24, 2015 at 6:42
  • @JeffMercado How large is your image? Can you send us the image so we can try uploading it? You can email me at [email protected]. Jun 24, 2015 at 7:09
  • @ChrisJester-Young: Oh, it's a large image. It's a screenshot from a game with some writing on it, that I intended to upload here. As is, it's a 4.4MB file. I'll send it your way. Jun 24, 2015 at 7:18
  • One of our devs just mentioned to me that, if he remembered correctly, the ASP.NET default file upload size limit is 4MB, and that we don't change from the default. So if it's 4.4MB, it might actually be above the limit. I should add some text to our image uploader stating this limit. Jun 24, 2015 at 7:18
  • @ChrisJester-Young: That might have been it. I reduced the file size down to 1.9MB. I was able to upload that. I think an error message there is in order. Jun 24, 2015 at 7:24

1 Answer 1

4

We've implemented a handful of features that help with the image size checking:

  1. A little message on the front page to advise users that there's actually a size limit:

    max 4mb

  2. A more-eyecatching warning if you select a large image anyway (with the submit button disabled):

    too large

  3. In cases where the user submits anyway, we now actually catch HTTP errors and report those back to the user. (The error message will just say Internal Error in this case, which isn't very helpful, but at least it won't look like it's perpetually-spinning.)

These features will be available in the next build (3525 on MSE/MSO, 2683 on other sites).

You must log in to answer this question.

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