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

How to pass files as string in createFileCommit method #115

Open
ayush04 opened this issue Jan 5, 2022 · 0 comments
Open

How to pass files as string in createFileCommit method #115

ayush04 opened this issue Jan 5, 2022 · 0 comments

Comments

@ayush04
Copy link

ayush04 commented Jan 5, 2022

I have a react client from where a user can drag and drop some files. I am sending those files to a node app from where I want to commit those files to Bitbucket repo. I am using multer to get the files in node.

My problem is, I am not sure how to pass these files to BitBucket.
The documentation here says the files parameter should be a string. Can someone please provide an example as to how convert a file to a string? Is it the content that should be converted? If so, how to pass the filename?

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

1 participant