I'm using SharePointOnline's Modern UI.

I would like to display an error message if a user uploads anything other than a PDF file in the document library.
Is there any way to achieve this other than an event receiver?

I would appreciate any ideas or pointers.

有帮助吗?

解决方案

For now, there is no OOB approach to block certain file types in a library, Here is a User Voice where you can vote for adding this feature.

许可以下: CC-BY-SA归因
scroll top