update remote api upload script