[Python] User input to upload files to Google Drive via Google Colab Notebook

Discussão em 'Python' iniciado por Stack, Junho 10, 2025.

  1. Stack

    Stack Membro Participativo

    I'm designing a tool that is going to be used by lots of non-coders, and the easiest way to have it accessible to everyone is through a notebook on Google Colab. Within the notebook, I'd like to be able to prompt for user input, e.g. "upload a video folder" and have this be uploaded to a specific folder within google drive. That way, the notebook can access this folder throughout the program without users having to manually specify any filepaths. Does anyone know of a way to do this?

    I have read a similar post which suggested:

    from google.colab import files

    files.upload()


    but this only uploads to the notebook's limited temporary storage and not the user's Google Drive. Folders being uploaded may be around 1 to 2gb (containing dozens of .avi videos).

    Continue reading...

Compartilhe esta Página