How to Validate File Size and Extensions in SharePoint Forms
Question details
The user wants to know how to validate or restrict file sizes and extensions when uploading files to out-of-the-box (OOB) list forms in SharePoint Online.
- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Monitoring or restricting document uploads in SharePoint based on file size and specific file extensions.
- Observed behavior
- The traditional method using Remote Event Receiver add-ins is no longer supported due to retirement, requiring alternative approaches to monitor or validate files.
Ensure you have at least Site Member or Owner permissions to edit the document library views and column settings in your SharePoint Online environment.
Use Default Name and File Size Columns
Enable the built-in Name and File size columns in your document library view to manually monitor and review uploaded files without requiring custom code.
Since Microsoft has officially retired the Remote Event Receiver add-in for SharePoint Online, you can no longer use it for out-of-the-box custom file validation. The most straightforward workaround to monitor uploads is leveraging SharePoint's default list view settings.
Navigate to your SharePoint document library. Click on the 'Add a column' option at the end of the column headers.
Scroll down in the dropdown menu and select 'Show or hide columns' to open the advanced view settings pane on the right side of the screen.
Check the boxes for the default 'Name (linked to document with edit menu)' column to view extensions, and the 'File size' column to track the size of uploaded documents.
Click the 'Apply' button to save the view. You can now easily review the extensions and sizes of all uploaded files in the library.
Implement Custom Validation with Power Apps or SPFx
If you require strict, automated rules to block unsupported file types or large files, you must build a custom solution using modern SharePoint development frameworks.
Looking for a Lightweight Office Suite to Edit SharePoint Documents?
While configuring SharePoint libraries to handle document uploads, you need a reliable desktop application to create, edit, and review your files. WPS Office is a fast, highly compatible, and free alternative to Microsoft Office that handles your SharePoint documents seamlessly.
- 1. Download WPS Office: Visit the official WPS website to download and install the lightweight application for your operating system.
- 2. Open Your Documents: Download your files from SharePoint and open them in WPS Office to enjoy full editing capabilities.
- 3. Save and Upload: Save your modifications in their native Microsoft formats and easily re-upload them to your SharePoint library.

Frequently Asked Questions
Why can't I use Remote Event Receivers for file validation in SharePoint Online?
Microsoft has officially retired the Remote Event Receiver add-in for SharePoint Online. This means it is no longer a supported option for out-of-the-box form validation, and you must adopt modern development practices like Power Apps or SharePoint Framework (SPFx).
Can I automatically block users from uploading files larger than a specific size in a document library?
Without custom development, SharePoint Online does not natively allow you to set custom maximum file size rules on a per-library basis. You must either use Power Apps to enforce logic on custom forms or rely on the default 'File size' column to audit uploads manually.
How do I make file extensions visible for all documents in a SharePoint library?
You can display file extensions by modifying the library view. Click 'Add a column', select 'Show or hide columns', and enable the default 'Name (linked to document with edit menu)' column, which renders the exact file name including its extension.




