Skip to main content
Tab

UploadControlDropboxSettings Class

Contains settings that allow you to connect the Upload Control to Dropbox.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

Declaration

public class UploadControlDropboxSettings :
    UploadControlUploadStorageSettingsBase

The following members return UploadControlDropboxSettings objects:

Library Related API Members
ASP.NET Web Forms Controls ASPxHtmlEditorUploadSettingsBase.DropboxSettings
ASPxUploadControl.DropboxSettings
ASP.NET MVC Extensions HtmlEditorFileSaveSettings.DropboxSettings
UploadControlBinderSettings.DropboxSettings
UploadControlSettings.DropboxSettings

Remarks

Follow the steps below to connect the Upload Control to Dropbox:

  1. Call a RegisterDropbox method overload in the Global.asax file.
  2. Set the Upload Control’s UploadStorage property to Dropbox.
  3. Assign a Dropbox account’s name to the DropboxSettings.AccountName property.

The following example demonstrates how to connect the Upload Control to Dropbox:

void Application_Start(object sender, EventArgs e) {
    DevExpress.Web.AccountManager.RegisterDropbox("YourDropboxAccount","YourAccessTokenValue","YourMemberID");
}
<dx:ASPxUploadControl ID="UploadControl" runat="server" UploadStorage="Dropbox" ShowUploadButton="True" >
    <DropboxSettings AccountName="YourDropboxAccount" />
</dx:ASPxUploadControl>

Once the Upload Control uploads a file to cloud storage, you can use the key name of this file to access it. To obtain a file key name, use the FileNameInStorage property of an UploadedFile object.

See Also