Last modified: October 20, 2010
Applies to: SharePoint Foundation 2010
An ActiveX control that enables multiple documents to be uploaded to a document library on a site in Microsoft SharePoint Foundation.
This control is defined in the STSUPLD.dll file, a dynamic-link library (DLL) that is installed on the client computer in the %ProgramFiles%\Microsoft Office\Office14\ directory during Microsoft Office 2010 Setup.
var obj = new ActiveXObject('STSUpld.UploadCtl');
In Microsoft Visual Basic Scripting Edition (VBScript), use the following to instantiate the control:
Set obj = CreateObject('STSUpld.UploadCtl')
In both cases, the argument is the programmatic identifier (ProgId) of the control, STSUpld.UploadCtl. For more information, see <ProgID> Key.
In SharePoint Foundation, when a user clicks Add document, the form for uploading documents, Upload.aspx, appears. If the user then clicks Upload Multiple Files, an <OBJECT> tag for the control is created on the page as follows:
<object id='idUploadCtl' name='idUploadCtl' classid='CLSID:07B06095-5687-4d13-9E32-12B4259C9813' width='638px' height='261px'> </object>
The CLSID that is used in this tag is the GUID that uniquely identifies the ActiveX control that is installed with Office 2010. To implement a custom control for uploading documents, specify a different GUID.