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 upload file? #44

Closed
quocthinhvo opened this issue Dec 23, 2020 · 4 comments
Closed

How to upload file? #44

quocthinhvo opened this issue Dec 23, 2020 · 4 comments

Comments

@quocthinhvo
Copy link

No description provided.

@alx-xlx
Copy link
Owner

alx-xlx commented Mar 12, 2021

You can use the goindex-vue.js to upload files

you can use GUI to upload
OR
if CLI is your thing then use HTTP requests

Example:

gdindex_upload.py

## Python Example
import requests

to_upload = "https://i.imgur.com/8w2KDrG.gif"
# "upload: true" in the script
baseURL = "https://gdindex-dark.teamsdrives.workers.dev/"
fileName = "goindex.gif"
# "folder1/folder2/goindex.gif"
teamDriveID = "0ANCHcQq-8cmvUk9PVA" # Default - "root"

URL = baseURL + "/" + fileName + "?rootId=" + teamDriveID + "&url=" + to_upload
r = requests.put(URL)
print(r.text)

@quocthinhvo
Copy link
Author

thanks. I will try. @alx-xlx

@alx-xlx alx-xlx pinned this issue Mar 14, 2021
@Bugaddr
Copy link

Bugaddr commented Mar 22, 2021

sorry to restart thread but how to use this script or shall i need extra server

@rishabh2021u
Copy link

Hey How can i upload a local file?

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

4 participants