File check for document creation