Attaching uploaded file to mail

Hi All, I want to send a email confirmation to user for successful submission of data on site. I want to also attach the file user just uploaded. Mail should get triggered as soon as Submit button is pressed by user.

I am able to trigger mail but I am not sure how to capture and attach uploaded document to mail. I am using sendgrid.js to send mails .