I would make the link goto a page to just insert the proper
info, like user name and date time ect. Then response.redirect to
the proper file. Pass the name of the file to the insert page by a
form parameter (GET or PUT), either one will work just depends if
you want to use a hyperlink or button. On the insert page use the
form variable as the name of the file and insert into the databse.
You can pass the name of the file in the URL or as a form variable
to the insert page or query for it if its in a db. You will have to
modify the insert record behavior to insert without the submit
action and change the redirect to the variable that is the file
name.