-
Posts
82 -
Joined
-
Last visited
-
Days Won
1
Community Answers
-
zyON's post in Way to check the name of the field used for uploading documents was marked as the answer
Ok, found it:
Using a InputfieldFile::fileAdded hook that returns a pageFile object:
public function addFile($event){ $file = $event->arguments(0); // file uploaded $field = $file->field->name; // name of the field on the page used for uploading the file (...) }