How we can restrict to users to upload only few files types in Document Library (SharePoint Online, Modern Communication Site).
I have two libraries one can accept only .pdf and .zip and another can accept only .pdf.
I am using SharePoint Online Modern Communication site, and Document Library.