-
Notifications
You must be signed in to change notification settings - Fork 1k
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
How to use streaming in createfile and updatefile #887
Comments
Hi @andhure 👋 I don’t think that this API can be streamed because the content of the file is namespaced with the property name "content": https://developer.github.com/v3/repos/contents/#create-a-file The only API that can be streamed is Upload a release asset because the raw content of the file can be sent in the file body. We are testing that here: https://github.com/octokit/rest.js/blob/469991db293b8ffc2af6daec0bb35665793a916d/test/unit/upload-asset-test.js#L21-L27 But that’s a good question. Maybe uploading the raw content and setting the If it does not work it might be worth asking [email protected] about it. Reference this issue if you do and keep us posted :) |
Thanks gr2m for the quick update. I will try this and update you if there is any progress. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello,
I was trying to stream and upload a file to a repo using create file. Below is the code, I was trying:
I get the error: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
Is it possible to stream foe this api?
The text was updated successfully, but these errors were encountered: