24

I want ot create a release for my Github project, but when I try to upload my binary (which is a .zip file) to the release, I get the following error message:

Something went really wrong, and we can’t process that file.

I get the same error message if I try to upload some other files (e.g. my readme file). What could be wrong?

leakey
  • 21
  • 9
petersohn
  • 11,292
  • 13
  • 61
  • 98
  • 2
    I am using Chrome and getting this error. Anyone else experiencing this issue? – Saurabh Jain Jan 28 '18 at 13:42
  • Yes, in dev console I see this error: "Failed to load https://github-production-release-asset-XXXXXX.s3.amazonaws.com/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://github.com' is therefore not allowed access. The response had HTTP status code 403." Did you ever resolve @SaurabhJain? – FizxMike Apr 16 '18 at 14:51
  • 1
    Works in IE (LOL!) – FizxMike Apr 16 '18 at 14:54
  • yes @FizxMike i did. please check my proposed solution below – Saurabh Jain Apr 28 '18 at 08:15

15 Answers15

22

Check first if this issue persists with all browser.

I have seen this error message before, where the upload succeeded with Chrome, but not Firefox.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 4
    Same here. It seems that Github doesn't like Firefox. – petersohn Jun 06 '17 at 11:28
  • Bug on server or in firefox? – user877329 Jul 25 '17 at 10:05
  • Anyone know if this is a known bug and if it's likely to be fixed? – david.pfx Sep 08 '17 at 11:28
  • For me it didn't work on Chrome Canary, but worked on Safari – leoneboaventura Oct 11 '17 at 11:54
  • Chrome Canary served its purpose, now Chrome doesn't work, (see my comment on OP). But IE still works. – FizxMike Apr 16 '18 at 14:56
  • @FizxMike IE!? I usually use it only to download Chrome or Firefox ;) – VonC Apr 16 '18 at 14:57
  • 1
    Yes, I was thinking it was corporate firewall issues, but it smells like Chrome added some "safety" and broke some infrastructure used by GitHub broswer GUI... they need to re-tool/fix a setting. Most "serious" people are using CI nowadays, so us little people (who just want to throw a draft binary up there to get the ball rolling) don't really matter. (Official response would be something like: "you are doing it wrong - manual releases, seriously?") – FizxMike Apr 16 '18 at 15:01
14

For the record in my case this was due to an obvious mistake: I had to authorize a github script in NoScript.

YvesQuemener
  • 601
  • 5
  • 16
6

If someone encounters this problem in China, and is using ShadowSocks, try turning ShadowSocks off.

hqzxzwb
  • 4,661
  • 2
  • 14
  • 15
3

I was trying to upload an image file in png format on chrome browser but I was getting the same message.As suggested in one of the answer, I turned off windows firewall and it worked.

But my mind was not satisfied and I turned on Windows firewall and converted that image to jpg format and it got uploaded.

But this stubborn mind was not satisfied and told me to upload this in .png format only.God came to my rescue and accidentally properties tab of png image got opened and at the bottom of tab, it was showing

"This file came from another computer and might be blocked".

see the link

So I unblocked it and it got uploaded.

Dima Kozhevin
  • 3,602
  • 9
  • 39
  • 52
2

The problem occurs during file upload because I was using VPN which doesn't allow file upload hence I disconnected from VPN and then try uploading which work absolutely fine. So my advice to check your firewall/VPN settings as mostly Organization doesn't allow fileupload in GIT due to security concern.

Raj
  • 31
  • 3
1

I got that error due to my companies firewall that prevents all file uploads. Might this be the cause of your problems?

hol
  • 8,255
  • 5
  • 33
  • 59
0

I got the same problem on Opera browser(Ubuntu 18.04.1).

Then I realized that my browser does not have permission to access the related(where your files located) partition. I moved the files that I wanted to upload on Github into accessible partition by Opera browser in my HDD, Thus I could be able to upload my files to Github.

It worked like a charm. Hope this helps.

bayram.cicek
  • 193
  • 2
  • 9
0

clear your browser's cookies and cache ..after clearing files will be uploaded easily on git without error

0

In my case. I'm reuploading two zip files to an existing release. One success and another one failed. Tried in both chrome and firefox.

My solution is to use the hub command-line tool.
I use the below command to edit the existing release and attach files to it.

hub release edit --draft=false --attach FILE TAG
yqrashawn
  • 413
  • 5
  • 8
0

For some reason, I had to change its prefix from .png to .jpg and it worked.

Hanoch Moreno
  • 593
  • 7
  • 9
0

I had the same problem which I solved by disabling my firewall. I hope this will work for you

0

In my case, it was my anti-virus (AVG) preventing the upload.

Hari
  • 373
  • 3
  • 11
0

In my case, Avast antivirus was blocking the objects-origin.githubusercontent.com site, and made the upload fail.

After disabling the antivirus, I was able to upload the files.

Annosz
  • 992
  • 6
  • 23
-1

Well! That is because your are uploading some images that you have downloaded from the internet like in my case I have used a favicon that is generated from website to solve the issue Image with security details~img1

Image with detail~img2

Remove personal info ~ img3

To solve the problem

first of all head to the images that you have downloaded from internet and right click on image and click on properties

  1. check the unblock checkbox as shown in image 1 and then
  2. click on the details tab as shown in image 2 and then click on the remove properties and personal information
  3. And then check on the remove the following properties on the file as shown in image 3
  4. And then click on ok and then again ok

The given solution will solve your issue it just worked perfect for me

Paw-1 Poudel
  • 112
  • 2
  • 7
-3

Files cannot be uploaded because your network provider doesn't allow, use different network or apply vpn for uploading the files.