When I am uploading document to a document library, Normally Create and Modified columns filled by today's date and time. But I need to fill those columns by actual created and modified date of that document, how can I do it.
I tried in this way,
I created a event receiver on ItemAdding and got file information, but I am unable to get the actual path from where file uplodaing ( so that I can have created and modified date).
SPFile spf = properties.ListItem.File;
string url = properties.AfterUrl;
All I need to get the file information (path, created and modified date) before it get uploaded to the document library.
View Complete Post