1

I need to restrict particular file type while uploading into document. Is there any possible way to restrict? I know there is no OOTB feature. Guide me if there any ways ? Also send me the sample code.

Thanks

0

We can use code to create an ItemAdding event receiver to restrict specific file types when upload to the library.

Reference: Restrict File Types in SharePoint Document Library Upload using Event Receiver

  • Is there any way to achieve this in workflow in sharepoint designer? – Sathya Ramesh Feb 20 at 7:51
  • You can create a workflow that start automatically when an item is created. and use "delete List Item" action when the file type is equal to relevant type. reference:blog.sisq.info/en/2013/03/… – Hellofiona_MSFT Feb 20 at 8:06
  • i tried that but it deleting all type of files while uploading. – Sathya Ramesh Feb 20 at 10:50
  • i think i have done in wrong way. Thanks for the help. – Sathya Ramesh Feb 20 at 10:51
  • If there is any way in workflow please inform me – Sathya Ramesh Feb 20 at 10:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.