Relative Content

Tag Archive for javascriptgoogle-apps-scriptgoogle-forms

ItemResponse attachment causing Reference Error

I’m not sure what I’m doing wrong but my best guess is that I’m handling the attachment wrong (although it only comes through as an ID and I append that too https://drive.google.com/open?id=ID_HERE). I have a Google Form where the only question is an attachment. Everything works fine when an attachment is added but when it’s not I get the following error:

Google Form Itemresponse attachment causing Reference Error

I’m not sure what I’m doing wrong but my best guess is that I’m handling the attachment wrong (although it only comes through as an ID and I append that too https://drive.google.com/open?id=ID_HERE). I have a Google Form where the only question is an attachment. Everything works fine when an attachment is added but when it’s not I get the following error:

Automatically rename uploaded files in Google Form

I have a google form for a small radio station for presenters to upload their shows.
In the form they fill out the broadcast date, presenter name, show name, a few other bits of information, and then they upload the audio, an image, and the tracklist (text file).
I want the audio, image and text files to be renamed in this format “YYYYMMDD PresenterName ShowName”
I’ve been trying to create a script to do this, however i’m only just learning about how to do this and can’t get it working.