title: update created by and modified by filed in document library, sharepoint 2010
body: <p>i have uploaded the document in document library using event handler in sharepoint 2010. but when the document is uploaded the created by and modified field is always show system account user.if my login user is other then system account too. so, can any one help me how to update document library modified by and created by field using event handler. my code to update field is:</p>
  
  <p>item.Web.AllowUnsafeUpdates = true;
   item["Author"] = "testuser";
   item.Update();
   item.Web.AllowUnsafeUpdates = false;</p>
  
  <p>but i got the error: Author field is read only.</p>
  
  <p>please help me.</p>