Can't upload files to github - HTTP ERROR 400, crbug/1173575

I’m trying to upload some small images to a github repo. In Firefox and Firefox developer edition, I’m getting a blank screen after I click “Commit changes”, with an error in the console:

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

In Chrome and in Edge, I get a mostly blank page with: This page isn’t working. If the problem continues, contact the site owner. HTTP ERROR 400

And in the console: Failed to load resource: the server responded with a status of 400 () VM9:7146 crbug/1173575, non-JS module files deprecated.

It was working fine this morning, but has now not been working for about 4 hours and is happening in both my Github accounts.

Are the images SVGs or other text-based formats? That’s the only way I could think this would not work…

Unfortunately they are a mix of .jpg and .png files. I also tried adding a json file and the same thing happened, so it appears not to be just related to images. I can create files, but not upload them.

Can you use a local Git client instead of uploading over the web? I can’t say what might be going wrong with the web interface, but directly using Git should work either way.

Thank you for the suggestion. I haven’t done that before, but as the problem is persisting this morning, I might give it a try.

1 Like

Just to update that I uploaded via Git like you suggested and that has worked just fine.

1 Like