Revise script to fix the uploadFilePath.