aspnet-120623-components-file-management-file-manager-concepts-file-system-providers-google-drive-file-system-provider.md
The Google Drive file system provider (GoogleDriveFileSystemProvider) allows you to connect ASPxFileManager to Google Drive.
Register the Google Drive service account that is linked to your application. The service account allows you to use the Google APIs to access a user’s account without client-side authorization.
Configure Google Drive Service Account
Follow the steps below to configure your Google Drive service account.
Private key :
Client Email :
...
AccountManager.RegisterGoogleDrive("Google", "[email protected]",
"DANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCu6OragV1n…...");
Set the ASPxFileManager.ProviderType property to FileManagerProviderType.GoogleDrive to allow ASPxFileManager to manage files and folders in Google Drive.
The GoogleDriveFileSystemProvider class allows you to access the file and folder hierarchy, and manipulate these files in the file manager.
Do the following to connect ASPxFileManager to Google Drive:
Use the AccountManager.RegisterGoogleDrive method to register the Google Drive account in the global.asax file.
Use the ASPxFileManager.SettingsGoogleDrive property to specify the Google Drive account’s name (FileManagerGoogleDriveProviderSettings.AccountName).
ASPxFileManager allows you to handle every request to Google Drive (the ASPxFileManager.CloudProviderRequest event).