Upload of 150MB file to a Release fails - max 25MB allowed? #146417
-
Select Topic AreaQuestion BodyI am working on a project where, in addition to sharing my code via a Release, I need to include a ZIP file of content associated with that release. Note that the content is not part of the repository data per se; I am not talking about uploading large files to be tracked as part of the repo, only on uploading large files as part of a release. My reading of the release documentation indicated that no one release file can exceed 2GiB but when I attempt to upload my 150MB zip file in the release creation web page, GitHub refuses to accept the upload and indicates that uploaded files cannot exceed 25MB. Am I doing something wrong? Do I need GLFS? A paid account? I am currently working through a browser on the free tier if that matters. (edited for clarity after initial submission) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
It sounds like you're running into trouble uploading your 150 MB file to a GitHub release. Here's the deal: 1. File Size LimitGitHub lets you upload files up to 2 GB for releases, so a 150 MB file should work fine. The "25 MB" limit you saw might be for other uploads, like in comments or issues. 2. Why It’s Not WorkingIf it’s failing, it could be a browser or network issue, or even something weird with your account/session. 3. How to Fix It
gh release upload <your-tag> <your-file>Example: gh release upload v1.0 my-file.zipCheck Your Network: Make sure your internet connection is strong. 4. If Nothing WorksYou can contact GitHub Support or temporarily host your file on another service (like Google Drive) and share the link in the release notes. Hope this helps! |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
|
Since your 150MB file exceeds the 25MB web limit, you must use the GitHub API to perform the upload. The most common and easiest method is by using the command-line tool GitHub CLI (gh).
Log in to GitHub CLI: Open your Terminal (or Command Prompt) and run the following command to authenticate your GitHub account: Bash gh auth login
Open your Terminal and navigate to the directory containing your 150MB file. Run the following command: Bash gh release upload Replace with the tag name of the Release you want to attach the file to (e.g., v1.0.0). Replace with the actual name of your 150MB file (e.g., App_Setup_150MB.zip). Example: Bash gh release upload v1.0.0 App_Setup_150MB.zip Bash gh release create v1.1.0 --repo <owner/repo> -t "Final Release 1.1.0" -n "Added new features." App_Setup_150MB.zip |
Beta Was this translation helpful? Give feedback.
It sounds like you're running into trouble uploading your 150 MB file to a GitHub release. Here's the deal:
1. File Size Limit
GitHub lets you upload files up to 2 GB for releases, so a 150 MB file should work fine. The "25 MB" limit you saw might be for other uploads, like in comments or issues.
2. Why It’s Not Working
If it’s failing, it could be a browser or network issue, or even something weird with your account/session.
3. How to Fix It
Example: