Set up the upload and wait for the document type