Store the UUID of uploaded files in the session (see #6986)