How to Block Video File Uploads to a SharePoint Online Site
Question details
The user needs a way to prevent specific file types, particularly video files, from being uploaded to a SharePoint Online site.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Administrators are trying to restrict users from uploading large video files to SharePoint document libraries to manage storage and enforce governance policies.
- Observed behavior
- SharePoint Online does not offer a standard site setting or built-in interface to block specific file extensions from being uploaded via the web interface or PowerShell.
Ensure you have SharePoint Administrator privileges and access to Microsoft Power Automate, as implementing custom upload restrictions requires elevated permissions and workflow configuration.
Automate Video File Removal Using Power Automate
Since SharePoint Online cannot block web uploads natively, use Power Automate to immediately delete or move video files once they are uploaded.
While you cannot prevent the upload process itself in modern SharePoint Online, a Power Automate workflow can act as a reactive governance tool. It detects the newly uploaded file, checks its extension, and removes it before users can access it.
Log in to Microsoft Power Automate, select 'Create' from the left menu, and choose 'Automated cloud flow'.
Name your flow and select the trigger 'When a file is created (properties only)' for SharePoint. Enter your Site Address and Library Name.
Click 'New step' and add a 'Condition'. Set the condition to check if the 'File name with extension' ends with video formats like '.mp4' or '.mov'.
In the 'If yes' branch, add the 'Delete file' action for SharePoint. Map the 'File Identifier' dynamic content to ensure the detected video is removed.
Restrict Video Uploads via OneDrive Sync Client
Use a PowerShell command to prevent users from syncing video files to SharePoint through their local OneDrive desktop clients.
Simplify Document Management with WPS Office
Navigating complex administrative controls and file restrictions in SharePoint can be challenging. For organizations and individuals seeking a lightweight, hassle-free document management experience, WPS Office offers a powerful, free alternative to Microsoft Office with built-in cloud support.
- 1. Download the Installer: Visit the official WPS Office website and download the free version for your operating system.
- 2. Install and Sign In: Run the lightweight installer and sign in to activate your free cloud storage space.
- 3. Manage Files Seamlessly: Create, open, and save your documents locally or to the cloud without worrying about complex file extension restrictions.

Frequently Asked Questions
Why is there no native setting to block file types in SharePoint Online?
Microsoft removed the legacy 'Blocked File Types' feature that was available in on-premises SharePoint Server. In SharePoint Online, Microsoft encourages the use of Power Automate, governance policies, and Information Barriers instead of hard-blocking file uploads via the web interface.
Will Set-SPOTenantSyncClientRestriction stop web browser uploads?
No. The Tenant Sync Client Restriction policy only prevents specified file types from being uploaded or downloaded by the local OneDrive desktop sync application. Users can still bypass this by uploading files directly through the SharePoint web portal.
Can I use custom event receivers to block uploads synchronously?
While classic SharePoint allowed synchronous event receivers to block uploads before they completed, modern SharePoint Online development relies on asynchronous remote event receivers, SharePoint Framework (SPFx), or Power Automate workflows, which typically handle the file immediately after the upload completes.




