Upload file
Google Drive Upload File is a powerful AI-powered tool that allows seamless uploading of files directly to your Google Drive or Shared Drives. It simplifies file management by supporting a variety of upload types and customizable metadata options.
Features
- Supports uploading files to both My Drive and Shared Drives for flexible file storage.
- Allows specifying target folders by parent ID to organize files efficiently.
- Supports multiple upload types including media, resumable, and multipart to handle different file sizes and network conditions.
- Automatically detects MIME types or accepts custom MIME type input for precise file classification.
- Enables adding custom metadata to files for better file description and management within Google Drive.
Benefits
- Enhances productivity by automating file uploads to Google Drive from any application.
- Reduces manual upload steps, saving time and minimizing errors in file management.
- Improves organization by allowing targeted uploads into specific folders or shared drives.
- Increases compatibility by supporting diverse file types and upload methods.
- Provides better file tracking and searchability with customizable metadata options.
Description
Upload a file to Google Drive. See the documentation for more information
Parameters
8 parameters
| Name | Type | Description |
|---|---|---|
| drive | string | Defaults to |
| parentId | string | The folder you want to upload the file to. If not specified, the file will be placed directly in the drive's top-level folder. |
| filePathrequired | string | Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf). |
| name | string | The name of the new file (e.g. |
| mimeType | string | The file's MIME type (e.g., |
| uploadType | enum | The type of upload request to the /upload URI. Required if you are uploading data, but not if are creating a metadata-only file. See the documentation for more information. |
| fileId | string | ID of the file to replace. Leave it empty to upload a new file. |
| metadata | object | Additional metadata to supply in the upload. See the documentation for information on available fields. Values will be parsed as JSON where applicable. Example: |