fix upload path when copying files