iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.
https://docs.iterative.ai/PyDrive2
Other
581 stars 69 forks source link

GetContentFIle #158

Closed AtkinsonA-LBE closed 2 years ago

AtkinsonA-LBE commented 2 years ago

Currently having issues downloading an excel file from Google Drive as the appropriate mimetype. Every time I download my existing file using .GetContentFile it downloads as a .file opposed to an excel file. Below is my current code:

https://github.com/AktinsonA/.GetContent/blob/f03ef6c67f15b884e8a0f154b1646d60df7c333f/GetContentFile()%20Google%20Drive%20API#L1-L34

Is there a quick fix for this? I would appreciate help.

AtkinsonA-LBE commented 2 years ago

Resolved issue renaming File_Name as File_Name + '.xlsx'