Thanks Jason! That's great!
1. How can I use this with two upload fields in the same form? The form I'm using actually has two separate upload fields.
2. Sometimes the uploaded file path in the form results email refers to a previously uploaded file. Is there a way to flush the memory so that it will always refer to the most recent uploaded file?