SOLVED

File Types

%3CLINGO-SUB%20id%3D%22lingo-sub-313269%22%20slang%3D%22en-US%22%3EFile%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313269%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20Day%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20trying%20to%20understand%20if%20there%20is%20a%20way%20that%20we%20could%20block%20specific%20file%20types%20in%20being%20uploaded%20into%20OneDrive%20for%20business.%26nbsp%3B%20Not%20sure%20we%20see%20an%20option%20on%20the%20admin%20center%20similar%20to%20the%20list%20of%20blocked%20file%20types%20we%20could%20manage%20on%20premise%20via%20the%20SharePoint%20Central%20Administration%20site.%26nbsp%3B%20Would%20this%20be%20perhaps%20done%20through%20powershell%3F%26nbsp%3B%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-313269%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313687%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313687%22%20slang%3D%22en-US%22%3EI%20knew%20what%20you%20meant%2C%20and%20you%20wern't%20exactly%20wrong%20per%20say%20%3A)%2C%20just%20he%20did%20ask%20if%20they%20could%20drag%20to%20the%20folder%2C%20which%20you%20still%20can%2C%20it%20just%20gets%20a%20little%20unhappy%20when%20you%20do%20it!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313682%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313682%22%20slang%3D%22en-US%22%3ESorry%20if%20i%20was%20unclear!!%20Its%20the%20sync%20that%E2%80%99s%20affected%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313674%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313674%22%20slang%3D%22en-US%22%3E%3CP%3ENo%2C%20Not%20quiet%20exactly%20%3A).%20%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20will%20still%20be%20able%20to%20drag%20the%20file%20into%20OneDrive%20via%20file%20explorer%2C%20you%20will%20just%20get%20a%20sync%20error%20on%20the%20file%20and%20it%20won't%20allow%20it%20to%20sync%20to%20your%20OneDrive%20instance!%20So%20at%20a%20file%20system%20level%20the%20file%20will%20copy.%20OneDrive%20just%20won't%20sync%20it%20up.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313628%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313628%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20exactly!%20It%20will%20take%20in%20affect%20when%20you%20sync%20the%20file%20%2C%20not%20uploading%20it%20via%20UI%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313623%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313623%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20all%20for%20the%20response.%26nbsp%3B%20So%20for%20example%20lets%20say%20I%20have%20a%20file%20locally%20on%20my%20machine%20and%20like%20to%20move%20it%20to%20OneDrive%20for%20Business%20but%20I%20do%20it%20through%20File%20Explorer%20as%20it%20has%20mapped%20already%20my%20OneDrive%20I%20could%20do%20a%20drag%20and%20drop%20or%20copy%20and%20paste%20(I%20would%20not%20using%20the%20web%20site%2FUI%20and%20clicking%20Upload%26gt%3BFile%20to%20execute%20that%20action.%26nbsp%3B%20In%20the%20even%20that%20we%20decide%20to%20try%20this%20file%20type%20syncing%20block%2C%26nbsp%3B%20will%20that%20mean%20that%20I%20will%20not%20be%20able%20to%20drag%20and%20drop%20or%20copy%20and%20paste%20locally%20a%20blocked%20type%20file%20to%20OneDrive%20via%20File%20Explorer%3F%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313473%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313473%22%20slang%3D%22en-US%22%3EYes%2C%20of%20course%20Juan%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20to%20sum%20it%20up%3A%20not%20possible%20to%20prevent%20through%20UI%2C%20only%20when%20uploading%20when%20using%20sync%20from%2Fto%20your%20device!%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20setting%20does%20not%20prevent%20downloading%20when%20syncing%20of%20those%20file%20types%20if%20they%20already%20exist%20in%20onedrive%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313471%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313471%22%20slang%3D%22en-US%22%3ECorrect%2C%20I%20was%20referring%20about%20the%20possibility%20to%20block%20additional%20file%20types%20so%20usersd%20cannot%20upload%20them%20through%20the%20UI%20and%20unfortunately%20this%20is%20not%20possible%20and%20this%20is%20why%3A%20file%20types%20allowed%20in%20SPO%20are%20configured%20at%20the%20Web%20Application%20level%20in%20SharePoint%2C%20something%20we%20cannot%20do%20in%20SPO%20%3B)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313468%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313468%22%20slang%3D%22en-US%22%3EYes!!%20He%20is!%20This%20is%20of%20course%20a%20syncing%20prevention%20of%20that%20specific%20file%20type%20from%20the%20device!%20Nothing%20else!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313405%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313405%22%20slang%3D%22en-US%22%3E%3CP%3EPretty%20sure%20Juan%20is%20right%20here%2C%20that%20setting%20is%20to%20prevent%20you%20from%20syncing%20the%20documents%20from%20your%20computer%20over%2C%20doesn't%20really%20restrict%20the%20file%20type%20itself%20from%20being%20uploaded%20to%20the%20web%20version%20of%20onedrive%20directly%20%3B).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20file%20restriction%20for%20SharePoint%20%2F%20OneDrive%20is%20a%20web%20application%20setting%20which%20we%20don't%20have%20access%20to%20in%20the%20cloud%2C%20so%20you%20can't%20technically%20restrict%20files%20with%20that%20setting.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313331%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313331%22%20slang%3D%22en-US%22%3ESure%3F%20There%20is%20settings%20for%20this%20%2C%20although%20haven%E2%80%99t%20tried%20them..%3CBR%20%2F%3EAlso%20ms%20doc%20claims%20you%20can%3F%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Fblock-file-types%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Fblock-file-types%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313317%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313317%22%20slang%3D%22en-US%22%3EAFAIK%2C%20file%20types%20allowed%20to%20be%20uploaded%20in%20SPO%20and%20ODFB%20cannot%20be%20configured...only%20Microsoft%20can%20do%20it%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313279%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313279%22%20slang%3D%22en-US%22%3EOr%20via%3A%20%3CA%20href%3D%22https%3A%2F%2Fadmin.onedrive.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fadmin.onedrive.com%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313277%22%20slang%3D%22en-US%22%3ERe%3A%20File%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313277%22%20slang%3D%22en-US%22%3EYes!%20From%20the%20admin%20portal%20go%20into%20the%20onedrive%20admin%20portal!%20Here%20you%20can%20set%20restrictions%20regarding%20file%20types!!%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

Good Day

 

We are trying to understand if there is a way that we could block specific file types in being uploaded into OneDrive for business.  Not sure we see an option on the admin center similar to the list of blocked file types we could manage on premise via the SharePoint Central Administration site.  Would this be perhaps done through powershell?  Thanks!

13 Replies
Highlighted
Yes! From the admin portal go into the onedrive admin portal! Here you can set restrictions regarding file types!!
Highlighted
Highlighted
AFAIK, file types allowed to be uploaded in SPO and ODFB cannot be configured...only Microsoft can do it
Highlighted
Best Response confirmed by Kevin Crossman (MVP)
Solution
Sure? There is settings for this , although haven’t tried them..
Also ms doc claims you can?
https://docs.microsoft.com/en-us/onedrive/block-file-types
Highlighted

Pretty sure Juan is right here, that setting is to prevent you from syncing the documents from your computer over, doesn't really restrict the file type itself from being uploaded to the web version of onedrive directly ;).

 

The file restriction for SharePoint / OneDrive is a web application setting which we don't have access to in the cloud, so you can't technically restrict files with that setting. 

Highlighted
Yes!! He is! This is of course a syncing prevention of that specific file type from the device! Nothing else!
Highlighted
Correct, I was referring about the possibility to block additional file types so usersd cannot upload them through the UI and unfortunately this is not possible and this is why: file types allowed in SPO are configured at the Web Application level in SharePoint, something we cannot do in SPO ;)
Highlighted
Yes, of course Juan

So to sum it up: not possible to prevent through UI, only when uploading when using sync from/to your device!

The setting does not prevent downloading when syncing of those file types if they already exist in onedrive

Adam
Highlighted

Thank you all for the response.  So for example lets say I have a file locally on my machine and like to move it to OneDrive for Business but I do it through File Explorer as it has mapped already my OneDrive I could do a drag and drop or copy and paste (I would not using the web site/UI and clicking Upload>File to execute that action.  In the even that we decide to try this file type syncing block,  will that mean that I will not be able to drag and drop or copy and paste locally a blocked type file to OneDrive via File Explorer? Thanks!

Highlighted

Yes, exactly! It will take in affect when you sync the file , not uploading it via UI

Highlighted

No, Not quiet exactly :).

You will still be able to drag the file into OneDrive via file explorer, you will just get a sync error on the file and it won't allow it to sync to your OneDrive instance! So at a file system level the file will copy. OneDrive just won't sync it up. 

Highlighted
Sorry if i was unclear!! Its the sync that’s affected
Highlighted
I knew what you meant, and you wern't exactly wrong per say :), just he did ask if they could drag to the folder, which you still can, it just gets a little unhappy when you do it!