Hi guys,
I am using the FileDataObjectManager to upload documents but wondered how to record the name of the user who uploads the file into the data object. I can do this using a front end form by doing something similar to this:
In the form submit function:
$member = Member::currentUser();
$firstname = $member->FirstName;
$lastname = $member->Surname;
$image->UploadMember = $firstname . " " . $lastname;
But I'm no sure how to do it with the objectmanager. Any ideas? Thanks