SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Reading MSDN documentation I see that we can define a type File for custom columns. When I define the site column in Elements.xml using element and type file, the column does not get rendered. THe feature installs and activates fine without any issues. The other column I put in (for testing) is of type text and it gets deployed fine. However, the file type does not.

Please tell me how to work with this? There is not much on google for this either.

Also, when we store a file in document library or via a document set, how does its entry in the database gets linked to the filename?


share|improve this question
up vote 0 down vote accepted

I would recommend doing this through the web interface or SharePoint Designer. Simply, create a new content type that inherits from the Document content type and then add it to a Document Library. You will inherit the file field and you will also be able to add other fields.

share|improve this answer
Thanks for the reply. I want to know this for better learning and understanding of sharepoint. – Emanuel Apr 10 '13 at 14:32

Your Answer


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.