---
schema_version: "1"
id: 22bcdf7c6d0537d6579120aa93602899605482426eff9a6546e72507c2046b35
title: Custom Open File
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/aura/components/forceChatter/customOpenFile/forceChatter-custom-open-file.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/forceChatter-custom-open-file.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ee570d151dc4936e78e2e550267f0e03800b48791e07568c010d061b24bc686a
products:
  - Lightning Component Reference
---
# Custom Open File

**`forceChatter:customOpenFile`**

Adds custom logic for file open/tap action for Communities on mobile and tablet devices.

**For Use In**

Experience Builder Sites

::::::tabset{tabs='["Specifications"]'}

:::::tab

## Attributes

| Name       | Description                | Type   | Default | Required                                     |
| ---------- | -------------------------- | ------ | ------- | -------------------------------------------- |
| `recordId` | The ID of the file record. | string |         | ![Yes](https://developer.salesforce.com/media/check.png) |


:::::

::::::
