Forum Discussion
Limit uploadable file size to modern SharePoint document library
Hi,
I'm looking to restrict the upload of any files >5MB to several modern SharePoint Document Libraries Is anyone aware of a way to do this? Ideally I could target pptx files but its not absolutely necessary.
As far as I know there's no OOTB solution. I have access to Power Automate (but I don't have access to Power Apps or PowerShell). I can request our IT dept to enact commands using PowerShell but they don't use Power Apps.
Has anyone got any suggestions?
Cheers.
- Paul de JongIron Contributor
Sourceress
Preventing the uploading of files larger than 5 MB is not feasible. The functionality is not present in SharePoint and you will need to cater for multiple ways to upload files (browser, OneDrive, API's, ...).
Using Power Automate you can re-actively inform the user and/or an admin person. You can also develop PowerShell scripts to detect large files or even use search.
In short, hard to implement and maintain.