Skip to content

Commit cc82599

Browse files
committed
Trigger event on upload
1 parent bad4b69 commit cc82599

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Controllers/Files.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ public function upload()
452452
// Accept the file
453453
$file = $this->model->createFromPath($path ?? $upload->getRealPath(), $data);
454454

455+
// Trigger the Event with the new File
456+
Events::trigger('upload', $file);
457+
455458
if ($this->request->isAJAX())
456459
{
457460
session_write_close();

0 commit comments

Comments
 (0)