Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using an App on my site that is kind of a list and allow you to select a file.

Sharepoint Screenshot Is there a way to restrict the file extension that the user can select? Can I do a receiver(event handler) to handle this?

I do not want to restrict the file extension for the whole site. Only for this portion.

Thank you.

share|improve this question
2  
What kind of app? If it's provider or auto hosted, then you should be able to control that with ASP. If it's sharepoint, you need to either use client side validation, or the accept attribute of the input tag (HTML5) –  wjervis Jun 13 at 12:29
    
I'm sorry I'm a web dev and Sharepoint is new to me. Is there a specific place where the asp code ends up for provider/hosted apps? The guy who made this is out of the office for a while and I need to get this fixed. –  Mostaguen Jun 13 at 13:18
    
And if you could point me towards handling client side stuff in sharepoints it would also be highly appreciated. Put that in an answer and i'll accept it. –  Mostaguen Jun 13 at 13:20
    
Did you still need help with this? I see you accepted an answer below. –  wjervis Jun 13 at 17:21
    
Ain't gonna fix something built into sharepoint... The user will have to be responsible for what they upload I guess... Still don't get sharepoint. –  Mostaguen Jun 13 at 19:52

1 Answer 1

up vote 0 down vote accepted

For SharePoint Online, this is the list of supported file types that can be stored in SharePoint Online -

http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/types-of-files-that-cannot-be-added-to-a-list-or-library-HA101907868.aspx?CTT=5&origin=HA102694293

This list is not customizable. Note that SharePoint Online does have virus protection built in to check files when they are uploaded.

Also check:

http://community.office365.com/en-us/f/154/t/149796.

For workarounds:

http://community.office365.com/en-us/f/154/t/239908.aspx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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