Closed WilliamBonvini closed 2 years ago
@WilliamBonvini please refer to this example - https://github.com/iterative/PyDrive2/blob/master/examples/Upload-and-autoconvert-to-Google-Drive-Format-Example/upload.py#L53 . It uploads a file and makes it a Google Sheet (it's optional).
Line 53 is the important part here and answers your question I hope :)
Ok, thanks! :)
Hi! sorry if the question may seem superficial, but I have some excel files that I want to upload to my google drive within my python project. I've read your documentation and you show the following example of text file upload:
for file with other extensions is it enough to replace
file1 = drive.CreateFile({'title': 'Hello.txt'})
with
file1 = drive.CreateFile({'title': 'MyExcelFile.xlsx'})
?And if so, where should I specify the path of my excel file?
Thank you in advance for your answer :)