Block upload of specific file types

Luka Kvaratskhelia 25 Reputation points
2024-02-09T10:03:42.44+00:00

Hello, I have followed instruction on how to block upload of specific file types from this link: https://learn.microsoft.com/en-US/sharepoint/block-file-types?WT.mc_id=365AdminCSH_spo

The documentation says it take approximately 8 hours for changes to take effect but it has been more than a day now and I am still able to upload files with those file types. Screenshot 2024-02-09 at 14.01.46 In my case I blocked 'js' and try to upload 'index.js' file that and it uploads successfully.

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} vote

Accepted answer
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2024-02-12T07:29:50.9366667+00:00

    This option is to prevent users from uploading specific file types when they sync their OneDrive files. It means that specific file types of files cannot be synced by OneDrive from SharePoint to local. Users still can upload specific file types of files into SharePoint.

    There are currently no known types of files that cannot be uploaded into SharePoint. And there is no OOTB way to restrict specific file types in the SharePoint Online.

    As a workaround, you could create a flow which auto-runs on each file uploaded and if it matches the given specific file types, auto-delete that document and send email to the author who uploaded it.

    Reference flow: https://learn.microsoft.com/en-us/answers/questions/1061411/restrict-file-type(-exe-dll-files)-upload-to-docum


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.