Document metadata "uploaded by" auto populated how?

Hi,
When I upload a document with the form wizard, on the metadata step, I have an empty field “uploaded by” and the user should put here his name.

As the user is autenticated by mayan-edms, how can I do to have this field automaticly set to the current user name or the current useremail ? I m not able to find how the system stores the username/email and how to get this {{ useremail }} or {{ username }} I tried a lot but with no success…

if someone can help me ?

Hi,
I clarify my question:

user Johndoe uploads a document, a worlflow is automaticly started:

The system sends an email to PB/MC asking for a new file to validate…:


Hi,

The document: {{ document }} is now ready to be validated (or rejected).


To access it click on the following link:

{{ document }}




Please, don’t reply to this email (as I’m a machine it will not be read)


TESTS trying to get the username or user_email of the user who uploaded the document in mayan…

this document was uploaded by : (user and username)

env.username :

{{ env.username }}


This template will give the username of the user that made the last transition:

{{ document.workflow.Workflow_1_niv.get_last_log_entry.user.username }}


username from upload form:

{{ document.metadata_value_of.mUploader }}


problem:
when i receive the email from the system these fields are empty:
{{ env.username }}
{{ document.metadata_value_of.mUploader }}
{{ document.workflow.Workflow_1_niv.get_last_log_entry.user.username }}

mUploader metadata is coming from the upload form :
image

image
image

The final goal is to have the email like this:
The document: {{ document }} is now ready to be validated (or rejected).


To access it click on the following link:

{{ document }}

The document was uploaded by XXXUSERNAMEXXX, XXXUSEREMAILXXX.

Could you please provide some help ?