It looks like you are using DFP version 1 and allowing the user to type in the file name in a separate field? Is that accurate? Because it adds the extension according to the file uploaded, they can't specify an extension in the file name typed in since it might not match the uploaded file.... that is probably why it is getting added to the end.