I made a goof in the code. Use these two lines to replace lines 4 & 5:
var docName = docRef.name.split('.')[0].split('_');
var docSize = docName[docName.length-1]
I made a goof in the code. Use these two lines to replace lines 4 & 5:
var docName = docRef.name.split('.')[0].split('_');
var docSize = docName[docName.length-1]