Revise script to identify and fix uploadFilePaths: add logall option.