UploadControlDropboxSettings Class
Contains settings that allow you to connect the Upload Control to Dropbox.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Related API Members
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:
- Call a RegisterDropbox method overload in the Global.asax file.
- Set the Upload Control’s UploadStorage property to
Dropbox
. - 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.
Inheritance
Object
StateManager
PropertiesBase
UploadControlUploadStorageSettingsBase
UploadControlDropboxSettings
See Also