---
id: gk-gravityexport-renderer-save-path
title: "Filter - gk/gravityexport/renderer/save-path"
sidebar_label: "gk/gravityexport/renderer/save-path"
tags:
  - "2.7.0"
---

# Filter: gk/gravityexport/renderer/save-path

:::info[Dynamic Hook Name]

This hook supports dynamic naming with the following modifiers:

1. `(int) \rgar($this->form, 'id', 0)`


**Example hook names:**
- `gk/gravityexport/renderer/save-path` (base hook)
- `gk/gravityexport/renderer/save-path_1` (with first modifier value)
:::

Modifies the path the rendered export file is saved to.

Applies to every saved render: notification attachments, scheduled and bulk exports. A file saved for a notification attachment is deleted right after its email is sent.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $file | `string` | The full path to save the file to. Default: the temp directory plus the export file name. |
| $form | `array` | The form object. Can be empty for renders without a form context. |

### Since

- 2.7.0

### Source

Defined in `src/Renderer/AbstractPHPExcelRenderer.php` at line 111

