---
title: "GravityExport field: FileUploadField"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityexport/gravityexport-field-fileuploadfield/"
---

If you want to disable the upload fields from the export, you can disable this via a setting on the General Settings page.

Of course, nowadays, you can just disable specific fields on the form settings, but it’s still a nice feature to have.

## Filters

`gfexcel_field_fileuploads_enabled_{form_id}`

Makes it possible to disable/enable a field. Just return a boolean, or use the WordPress `__return_false` or `__return_true` functions.

## **Example**

```
/**
 * Disables all file upload fields from being included in GravityExport exports.
 *
 * By returning false for this filter, any fields of type "file upload" will be excluded
 * from the exported file.
 *
 * @since 1.0.0
 *
 * @return bool False to disable file upload fields from export.
 */
add_filter( 'gfexcel_field_fileuploads_enabled', '__return_false' );
```

```
/**
 * Disables all file upload fields from being included in GravityExport exports.
 *
 * By returning false for this filter, any fields of type "file upload" will be excluded
 * from the exported file.
 *
 * @since 1.0.0
 *
 * @return bool False to disable file upload fields from export.
 */
add_filter( 'gfexcel_field_fileuploads_enabled', '__return_false' );
```