Check the file of a document is unique when the doc is crated/modifed. Doc. is not created/modified if the file is not unique