Can Google Apps Script provide a direct link to a file that has been uploaded to a Google Drive folder? Currently, I can only obtain a link to the folder itself where all files are saved.
This is the code I am using for file uploads:
function processForm(theForm) {
try{
var fileBlob1 = theForm.resumeFile;
var fileBlob2 = theForm.piFile;
var fldrSssn = DriveApp.getFolderById('My Folder ID');
fldrSssn.createFile(fileBlob1);
fldrSssn.createFile(fileBlob2);
return fldrSssn.getUrl();
}catch(e) {
Logger.log(e);
}//End catch
}