Upload File
This action uploads a file to Gemini and returns metadata (including URL/identifiers), which then become available in the Files object.
Action Parameters
| Parameter | Description |
|---|---|
| FileName | String, optional. The name of the file to be uploaded. |
| BinaryContent | Binary, required. The binary content of the file to be uploaded. |
| MimeType | Enum, optional. The MIME type of the file to be uploaded. |
Both FileName and MimeType are optional parameters, but you must specify at least one of them.
Result
The action returns the following fields as a result: File_Id, File_Url, File_MimeType, File_DisplayName, File_SizeBytes, File_CreateTime, File_UpdateTime, File_ExpirationTime, File_Sha256Hash, File_State, File_Source.
Was this page helpful?