Write an upload document command