Revise script to identify and fix uploadFilePaths