Sending file attachments along with Google Docs form submission, having them emailed?

David K picture David K · Feb 15, 2013 · Viewed 10.1k times · Source

I'm building a form using GDocs, and then taking the form out into my web page so I can directly edit the form (so I do have complete control over the form code).

Right now I'm able to submit the results send to Google Docs, and then have the results emailed me to me.

I want to add a file attachment to these submissions, using:

<input type="file" name="datafile" id="filedata" size="40">

I know I can use mailApp.sendEmail's advanced arguments, specifically the attachments argument, or the inlineImages argument.

But how do I access the file values in order to attach them to send?

Answer