Restrict file type upload to PDF on SharePoint Online Library

%3CLINGO-SUB%20id%3D%22lingo-sub-209321%22%20slang%3D%22en-US%22%3ERestrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-209321%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20customer%20who%20needs%20to%20have%20a%20site%20collection%20open%20to%20the%20public%20that%20restricts%20the%20file%20types%20they%20can%20upload%20to%20PDF.%20Open%20to%20custom%20code%20or%203rd%20party%20tool%20solutions.%20Thank%20you%20in%20advance%20for%20any%20guidance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216238%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216238%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20is%20for%20SPO%20and%20I%20have%20it%20set%20to%20anon%20access.%20Question%20was%20mostly%20revolving%20around%20the%20restricting%20file%20type%2C%20but%20I%20appreciate%20your%20response%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216237%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216237%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20this.%20I%20was%20hoping%20for%20something%20automated%2C%20but%20I%20think%20that%20will%20be%20too%20much%20customization%20for%20SPO.%20This%20is%20good%20reference%20though.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210044%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210044%22%20slang%3D%22en-US%22%3Eoooo%2C%20sorry%2C%20thought%20this%20was%20for%20SPO.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210043%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210043%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F875%22%20target%3D%22_blank%22%3E%40Christopher%20Webb%3C%2FA%3E%2C%20Yes%20you%20are%20absolutely%20right%20and%20we%20all%20know%20about%20it.%20i'm%20suggesting%20sharepoint%20on-premise%20platform%20for%20Anonymous%20site%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210041%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210041%22%20slang%3D%22en-US%22%3EMicrosoft%20used%20to%20provide%20a%20public%20site%20option%20for%20SharePoint%20Online%2C%20but%20they%20removed%20it%20sometime%20back.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210040%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210040%22%20slang%3D%22en-US%22%3E%3CP%3ECurious%26nbsp%3Bto%20know%26nbsp%3Bwhy%20not%20SharePoint%3F%20we%26nbsp%3Bcan%26nbsp%3Bcreate%20Anonymous%20site%20SharePoint%26nbsp%3Bon-premise%20system.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-209472%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-209472%22%20slang%3D%22en-US%22%3ESo%20by%20public%20you%20mean%20unauthenticated%20open%20internet%3F%20If%20so%20SharePoint%20can't%20be%20your%20solution%20here.%20So%20need%20a%20little%20more%20info%20on%20what%20this%20public%20site%20collection%20will%20be%2C%20just%20a%20file%20upload%20tool%3F%20or%20is%20this%20supposed%20to%20be%20a%20page%20like%20site%20with%20information%20etc.%20AND%20a%20place%20to%20upload%20files.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-209469%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20file%20type%20upload%20to%20PDF%20on%20SharePoint%20Online%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-209469%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20could%20restrict%20document%20library%20to%20pdf%20file%20type%20using%20flow.%20Setup%20content%20approval%20on%20the%20document%20library%20and%20reject%20any%20file%20types%20other%20than%20pdf.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.chakkaradeep.com%2F2018%2F03%2F12%2Frequire-approval-of-documents-in-sharepoint-using-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.chakkaradeep.com%2F2018%2F03%2F12%2Frequire-approval-of-documents-in-sharepoint-using-microsoft-flow%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

I have a customer who needs to have a site collection open to the public that restricts the file types they can upload to PDF. Open to custom code or 3rd party tool solutions. Thank you in advance for any guidance.

8 Replies
Highlighted

You could restrict document library to pdf file type using flow. Setup content approval on the document library and reject any file types other than pdf.

 

https://www.chakkaradeep.com/2018/03/12/require-approval-of-documents-in-sharepoint-using-microsoft-...

Highlighted
So by public you mean unauthenticated open internet? If so SharePoint can't be your solution here. So need a little more info on what this public site collection will be, just a file upload tool? or is this supposed to be a page like site with information etc. AND a place to upload files.
Highlighted

Curious to know why not SharePoint? we can create Anonymous site SharePoint on-premise system. 

Highlighted
Microsoft used to provide a public site option for SharePoint Online, but they removed it sometime back.
Highlighted
@Deleted, Yes you are absolutely right and we all know about it. i'm suggesting sharepoint on-premise platform for Anonymous site
Highlighted
oooo, sorry, thought this was for SPO.
Highlighted

Thank you for this. I was hoping for something automated, but I think that will be too much customization for SPO. This is good reference though.

Highlighted

It is for SPO and I have it set to anon access. Question was mostly revolving around the restricting file type, but I appreciate your response