1) Use the server validation tool to validate the file name using the File Extension validation type. you can eter a comma seperated list of allowed extensions.
2) there are 2 ways to attach files to an email??
a) Dont use the file upload behavior and select the Submitted file option on the attachments tab of the UE behavior??
b) Use the file upload behavior to save the file to the server. Then on the attachments tab of the UE behavior, select the enter value option.??Click the lightning bolt icon and expand the Uploaded Files binding group, select the Server Directory binding. Copy the code for the server directory binding, then select the Server file name binding. lastly, copy the server directory code in front of the server file name binding code.