Fixed script upload to match the latest server API