> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload File

Upload a file to Gemini for use within the `Ask Gemini` action.

**Important Note:** Files are automatically deleted after 48 hours.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Gemini documentation](https://ai.google.dev/gemini-api/docs/files#upload-file).

## Parameters

| Parameter | Description |
| - | - |
| Display Name | The display name of the file. If not specified, the display name will be the name of the file. |
| File Identifier | The 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 Workflows](https://docs.blinkops.com/docs/workflows/building-workflows/files.md) for more details. |
| MIME Type | The MIME type of the file. |

## Example Output

```json theme={"dark"}
{
	"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](https://library.blinkops.com/workflows/upload-file-with-gemini-and-send-results-via-email)

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/upload-file-with-gemini-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/upload-file-with-gemini-and-send-results-via-email/canvas)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.