Adding HttpHandler to SharePoint 2010 to rename PDFs on download

I have been looking around for awhile now and I can't seem to find an up to date example and my current knowledge of SharePoint as a whole is fairly minimal. What I need to do is append a column from a document library as well as the last date modified to PDFs as they are downloaded. As far as I can see there isn't a built in way to do this with SharePoint and the way to go is to produce an HttpHandler that changes the file name before it is downloaded.


I found this which is a good start and adding the code to manipulate the file name seems straightforward, but where I get stuck is actually creating the proper files and deploying it to SharePoint.

Any suggestions or examples would be much appreciated.


What you need to do is to packade your VisualStudio SharePoint project (features, packages etc.) in to a .wsp file. A .wsp file is simply a zip file that contains your artifacts that are going to be deployed to the hive (14 folder).

I would recommend you to use CKS Dev where you can in an easy way create the wsp. It is an open source plugin to VS 2010 found on code plex. CKS Dev on CodePlex

Next step is to copy this wsp to the server where it needs to be installed. And then issue some powershell commands on the server to install your code. Here is a link taking you through the steps of deployment

So in short: 1. Create wsp 2. Copy wsp 3. Install wsp on server

I hope it helps. Good luck.

Need Your Help

C# for Unity3d: 3x invalid tokens, name space cannot directly contain..., and end of file expected

c# unity3d

so I'm trying to make a basic death script that changes the view from the main character controller to a second camera.

Best API for modeling networked devices with arbitrary attributes to learn from?

c# java oop api-design

I need to design a new API which models networked devices which have a large amount of attributes which vary quite a lot based on the device's type. The attribute set is not totally arbitrary thoug...