How do I access the meta information of uploaded files in the afterCreate hook?
Sorry if this is silly question, I'm trying to get this type of information in afterCreate
name
file_name
mime_type
path
disk
Solution:Jump to solution
From
afterCreate()
, you can access the uploaded file name in $this->data['my_upload_field']
. The disk and path should be a configuration thing known from context. And you can get the mimetype in regular PHP.2 Replies
Solution
From
afterCreate()
, you can access the uploaded file name in $this->data['my_upload_field']
. The disk and path should be a configuration thing known from context. And you can get the mimetype in regular PHP.Thanks @Patrick Boivin!