In a SharePoint Foundation 2010 document library, you are sent to a new page to upload a document instead of to a dialog box

Applies to: Microsoft SharePoint Foundation 2010

Symptoms


Consider the following scenario:
  • On a server that is running Microsoft SharePoint Foundation 2010, you browse to a document library.
  • You add a new content type to the content types that are allowed for that document library.
  • Then, on the Document tab, under Library Tools, you click New Document, and then in the menu, you click the new content type that you added.
In this scenario, instead of an Upload Document dialog box being opened, you are redirected to a form on an Upload Document page on the SharePoint Foundation 2010 site.

Cause


This issue occurs when the new upload form for the new document library content type does not begin with "upload." When this occurs, SharePoint 2010 opens the form in a new page when you try to upload a new document for that content type.

Resolution


To resolve this issue, you must rename the form so that it begins with the word "upload." To do this, follow these steps:
  1. On the SharePoint server, open the document library to which you added the new content type.
  2. Under Library Tools, click Library, and then in the Settings group, click Library Settings.
  3. If Content Types is not visible, follow these steps:
    1. Under General Settings, click Advanced settings.
    2. Under Allow management of content types, click Yes.
    3. Click OK.
  4. Under Content Types, click the new content type.
  5. Under Settings, click Advanced settings.
  6. Under Enter the URL of an existing document template, locate the content type file name.

    For example, consider the case in which the URL is as follows:
    /sites/Parent_folder/Library_name/Forms/Content_template.xml
    In this case, Content_template.xml is the file name.
  7. Add Upload_ to the beginning of the file name.

    For example, the file name that is described in step 6 is changed as follows:
    Upload_Content_template.xml
    The URL should now be as follows:
    /sites/Parent_folder/Library_name/Forms/Upload_Content_template.xml
  8. Click OK.
  9. On the server that is running SharePoint Foundation 2010, open the following folder:
    %SystemDrive%\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\template\layouts
  10. Select the new content type file. On the Edit menu, click Copy, and then click Paste. This creates a copy of the file.
  11. Rename the copy of the content type file to match the name change that you made in step 7.

    For example, locate the file that is named Content_template - Copy.xml, and rename it to Upload_Content_template.xml.