file upload colab code example
Example 1: colab mount drive
from google.colab import drive
drive.mount('/content/drive')
#Optional: move to the desired location:
%cd drive/My Drive/DIRECTORY_IN_YOUR_DRIVE
Example 2: upload file in colab
from google.colab import files
files.upload()
Example 3: google colab upload a file
from google.colab import files
files.upload()