Storing file size and mime type from uploaded file.
I understand that I should be using the
afterStateUpdated method, but how can I inject these two properties from the uploaded file into the $data array? Am I supposed to use a hidden form field or is there a better way?