Main script upload