Back to Devexpress

UploadControlDropboxSettings Class

aspnet-devexpress-dot-web-b9784d6d.md

latest3.5 KB
Original Source

UploadControlDropboxSettings Class

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class UploadControlDropboxSettings :
    UploadControlUploadStorageSettingsBase
vb
Public Class UploadControlDropboxSettings
    Inherits UploadControlUploadStorageSettingsBase

The following members return UploadControlDropboxSettings objects:

LibraryRelated API Members
ASP.NET Web Forms ControlsASPxHtmlEditorUploadSettingsBase.DropboxSettings
ASPxUploadControl.DropboxSettings
ASP.NET MVC ExtensionsHtmlEditorFileSaveSettings.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:

cs
void Application_Start(object sender, EventArgs e) {
    DevExpress.Web.AccountManager.RegisterDropbox("YourDropboxAccount","YourAccessTokenValue","YourMemberID");
}
aspx
<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.

Implements

IStateManager

IPropertiesOwner

Inheritance

Object StateManager PropertiesBase UploadControlUploadStorageSettingsBase UploadControlDropboxSettings

See Also

Cloud Storage Account Management

UploadControlDropboxSettings Members

DevExpress.Web Namespace