This commit is contained in:
Shivam Jha 2019-11-01 19:00:35 +05:30 committed by GitHub
parent 826ab1d6f5
commit 7b5375fd21
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ class GoogleDriveHelper:
if parent_id is not None:
file_metadata['parents'] = [parent_id]
if os.path.getsize(file_path):
if os.path.getsize(file_path) == 0:
media_body = MediaFileUpload(file_path,
mimetype=mime_type,
resumable=False)