How to Solve NameError: name 'MediaFileUpload' is not defined -- googleapiclient
Solution: Import the 'MediaFileUpload' module
To Solve the error, add the following line to the top of your code.
from googleapiclient.http import MediaFileUpload
For more information:
Python googleapiclient MediaFileUpload