Actions16
- Content Actions
- Cached Content Actions
- Embedding Actions
- File Actions
- Model Actions
- Token Actions
File → Upload
AI-generatedSummary
Upload a binary file to the Gemini AI Studio Files API by specifying the binary property containing the file data, optionally setting a display name and MIME type for the uploaded file.
Inputs
- fileBinaryPropertyName (required) — Name of the input binary property from the workflow item to upload as a file.
- fileDisplayName — Optional display name for the uploaded file; defaults to the binary file's original name or the property name if not provided.
- fileMimeType — Optional MIME type to override the binary property's MIME type; defaults to the binary property's MIME type if not set.
Output shape
a single JSON object representing the uploaded file resource returned by Gemini AI Studio API
The output contains the response from the Gemini Files API upload operation including metadata about the uploaded file, paired to the input item.
Examples
Example 1: Uploading a PDF document stored in the binary property 'pdfData', setting a display name and MIME type explicitly.
Set 'fileBinaryPropertyName' to 'pdfData', 'fileDisplayName' to 'Report June 2024.pdf', and 'fileMimeType' to 'application/pdf'.