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

Implement uploadFile uploadFolder and other helpers #62

Open
julien-c opened this issue Mar 7, 2023 · 3 comments
Open

Implement uploadFile uploadFolder and other helpers #62

julien-c opened this issue Mar 7, 2023 · 3 comments
Labels
hub @huggingface/hub related

Comments

@julien-c
Copy link
Member

julien-c commented Mar 7, 2023

No description provided.

@o-az
Copy link
Contributor

o-az commented Mar 8, 2023

Is it for uploading file/s/folder/s from a user's machine through the browser to huggingface and for same thing but backend? I'd like to know more about this task if possible 🤠

@coyotte508
Copy link
Member

coyotte508 commented Mar 8, 2023

I guess backend it would take a {path: string} to the folder or to the file for NodeJS, and frontend it would take a File or FileSystemEntry (to handle folders) as param.

gitignore'd files should also be ignored in the case of a folder.

It would be a wrapper around commit, but would require changes to commit as well or at the very least adding a smart Blob wrapper (like Bun) around files.

This is going to be a Technical PR

@coyotte508
Copy link
Member

uploadFile, uploadFiles, deleteFile and deleteFiles were added by #126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hub @huggingface/hub related
Projects
None yet
Development

No branches or pull requests

3 participants