Implement upload command.