Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File size limited to 1MB #85

Closed
ghost opened this issue Apr 22, 2014 · 1 comment
Closed

File size limited to 1MB #85

ghost opened this issue Apr 22, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 22, 2014

I tried to delete a file with 3MB from my repository. But to do that I need to call GHRepository.getFileContent first and that leads to the following error:

Exception: {"message":"This API returns blobs up to 1 MB in size. The requested blob is too large to fetch via the API, but you can use the Git Data API to request blobs up to 100 MB in size.","documentation_url":"https://developer.github.com/v3/repos/contents/#get-contents","errors":[{"resource":"Blob","field":"data","code":"too_large"}]}

The same happens with GHRepository.createContent.

Is there a way to use the git blobs api: https://developer.github.com/v3/git/blobs/?

@ghost ghost changed the title Unable to delete or update file bigger than 1MB File size limited to 1MB Apr 22, 2014
@ghost
Copy link
Author

ghost commented Apr 23, 2014

I guess this is a limitation of the github API and can not be solved programatically.

@ghost ghost closed this as completed Apr 23, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants