How to set custom upload form for existing specific document library in sharepoint using visual studio?


A custom aspx page would be possible though,but editing the OOTB upload.aspx in the 14 hive would make your environment unsupported, the next time you install an update for sharepoint, your changes could be overwritten. Modifying any OOTB page will impact all applications running on the same farm. What ever your custom requirement always copy the OOTB page to a subfolder and try work on that copy.

I'm pretty sure doing this with infopath is not possible, the forms should be bound to a (codebehind) class in the SharePoint object model, which handles the actual upload (add to list, set field values etc. etc.).

Meanwhile, here is one article on custom upload form for your reference.

Custom upload form for document library in SharePoint 2010 - programmatic approach


EDITED: Have a look at the below links to

Modification of '_layouts/upload.aspx'

Custom upload page in Layouts for document library and it's Navigation from upload menu in the Toolbar. Bend it !! Custom upload menu for the document library

Manipulate upload link in document library

  • This approach is when we will create document library programmatically. But what we have to do if we want to attach on existing document library? – user1337886 Dec 5 '13 at 9:49
  • 1
    you can user powershell to update default forms of a library like this $web = Get-SPWeb <Url here> $list = $web.Lists.TryGetList("<List Here>") $List.DefaultNewFormUrl = "<new url> $list.update() – Remko Dec 5 '13 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.