title: Automatically add tag to uploaded document in sharepoint
body: <p>My environment is sharepoint 2010 and vs 2010.</p>
  
  <p>I already have an OOTB document library that I am using and I wanted to know how I can add a tag or keyword to a METADATA column.</p>
  
  <p>I am using the same document library in all subsites and so would like to tag the uploaded document with the name of the current site (ie if it's being used in a subsite, that subsite's name would be the tag).</p>
  
  <p>Would I need to build a custom document library or some sort of add-on webpart that attaches to the existing document library?</p>
  
  <p>If you could provide some code samples if any that would be appreciated.</p>
  
  <p>thanks,</p>
  
  <p>KS</p>