All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

UploadControlSettings.SharePointSettings Property

Provides access to the account settings required to upload files to OneDrive.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.1.dll

Declaration

public UploadControlSharePointSettings SharePointSettings { get; }
Public ReadOnly Property SharePointSettings As UploadControlSharePointSettings

Property Value

Type Description
UploadControlSharePointSettings

The SharePoint account settings.

Remarks

To work with SharePoint, set the UploadControlSettings.UploadStorage property to SharePoint.

@Html.DevExpress().UploadControl(
    settings => {
        settings.Name = "ucSharePointUploader";
        settings.UploadStorage = UploadControlUploadStorage.SharePoint;
        settings.SharePointSettings.AccountName = Model.AccountName;
        settings.SharePointSettings.TokenEndpoint = Model.TokenEndpoint;
        settings.SharePointSettings.RedirectUri = Model.RedirectUri;
        settings.SharePointSettings.SiteName = Model.SiteName;
        settings.SharePointSettings.SiteHostName = Model.SiteHostName;
        settings.SharePointSettings.UploadFolder = "UploadedFiles";
        //...
    }
).GetHtml()

Online Demo

See Also