Skip to content

Commit

Permalink
Add CHANGELOG entry
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsche committed Dec 6, 2024
1 parent 8f52e36 commit 175b036
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG-5.x.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
5.5.0
-----

* Dispatch UploadedFileEvent when a file is uploaded

5.4.1
-----

Expand Down
3 changes: 3 additions & 0 deletions docs/file_uploads.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ So there are two options to handle file uploads:
* either specify the `path` or `pathCallback` option to store files locally
* or specify the `flysystemConfig` option, so you can store files anywhere using [Flysystem](https://flysystem.thephpleague.com/docs/).

When a file is uploaded, a `Leapt\CoreBundle\Event\UploadedFileEvent` event is dispatched so you can do whatever
you want with the uploaded file.

!!! note

To retrieve configured Flysystem storages, the bundle checks for any storage configured using [league/flysystem-bundle](https://github.com/thephpleague/flysystem-bundle).
Expand Down

0 comments on commit 175b036

Please sign in to comment.