Return msg from ui_template node


I have code in a ui_template node and i want to return the file name, in this case $("#file-name").text(this.files[0].name); to a connected node. How would that be done in the below code:

<meta http-equiv="Content-Language" content="en-ca">
<form action="/upload" enctype="multipart/form-data" method="POST">
    <p>XML File Upload:</p>
    <label for="getFile" class="btn">
    <input id="getFile" name="myFile" type="file" style="display:none;">
    <label id="file-name"></label>
    <input type="submit" button class="btn" value="UPLOAD XML FILE"/>
<script type="text/javascript">

Thanks in advance.

Please read this post in sharing code on the forum and then edit your post to fix up the formatting. The XML is being treated as HTML and not displaying.

Thanks, I updated my previous post.

Found it in another object: msg.req.files.myFile[0].originalname;