---
title: "AfterFileCreatedEvent"
manual: "TYPO3 Explained"
version: "14.3"
permalink: "https://docs.typo3.org/permalink/t3coreapi:afterfilecreatedevent@14.3"
source: "ApiOverview/Events/Events/Core/Resource/AfterFileCreatedEvent.rst"
rendered: "2026-10-12T06:56:54+00:00"
---

# `AfterFileCreatedEvent` {#afterfilecreatedevent}

The PSR-14 event
`\TYPO3\CMS\Core\Resource\Event\AfterFileCreatedEvent`
is fired after a file was created within a resource
[storage](https://docs.typo3.org/permalink/t3coreapi:fal-architecture-components-storage@14.3) /
[driver](https://docs.typo3.org/permalink/t3coreapi:fal-architecture-components-drivers@14.3).
The folder represents the "target folder".

*Example:* This allows to modify a file or check for an appropriate signature
after a file was created in TYPO3.

## Example {#after-file-created-event-example}

> [!NOTE]
> Currently, we do not have an example for this event. If you can provide a
> useful one, please open [an issue](https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/issues/new) with your code snippets or
> [a pull request](https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/Howto/EditLocal.html#docs-contribute-git-docker).

## API {#after-file-created-event-api}

-   **class AfterFileCreatedEvent**

    -   *Fully qualified name:* `\TYPO3\CMS\Core\Resource\Event\AfterFileCreatedEvent`

    This event is fired before a file was created within a Resource Storage / Driver.

    The folder represents the "target folder".

    Example: This allows to modify a file or check for an appropriate signature after a file was created in TYPO3.

    -   **getFileName()**

        *Returns:* `string`

    -   **getFolder()**

        *Returns:* `TYPO3CMSCoreResourceFolder`
