from google.colab import drive drive.mount('/content/temp_drive') code example Example: google colab upload a file from google.colab import files files.upload()