> ## 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).
</Note>

## Parameters

<div className="integrations-table">
  | 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.<br /><br />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).<br /><br />See [Using with Files in Workflows](https://docs.blinkops.com/docs/workflows/building-workflows/files) for more details. |
  | MIME Type       | The MIME type of the file.                                                                                                                                                                                                                                                                                                           |
</div>

## 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)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/upload-file-with-gemini-and-send-results-via-email/canvas" />
</div>
