Migrate corpus_upload_modal to take state prop instead of doing another query