Skip to main content
Upload a file to Gemini for use within the Ask Gemini action. Important Note: Files are automatically deleted after 48 hours.
External DocumentationTo learn more, visit the Gemini documentation.

Parameters

ParameterDescription
Display NameThe display name of the file. If not specified, the display name will be the name of the file.
File IdentifierThe identifier of the file.

A file identifier represents a file created or referenced earlier in the workflow (for example, from a file action or another step that produces a file).

See Using with Files in Workflowsfor more details.
MIME TypeThe MIME type of the file.

Example Output

{
	"file": {
		"name": "files/...",
		"displayName": "...",
		"mimeType": "...",
		"sizeBytes": "...",
		"createTime": "...",
		"updateTime": "...",
		"expirationTime": "...",
		"sha256Hash": "...",
		"uri": "https://generativelanguage.googleapis.com/v1beta/files/...",
		"state": "ACTIVE"
	}
}

Workflow Library Example

Upload File with Gemini and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop