Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCloudStorageGoogleDriveProvider.DefaultMIMETypeToExtensionDictionary Property

Provides access to the dictionary populated with multipurpose internet mail extension (MIME) content types of Google Document formats and the corresponding filename extensions.

#Declaration

Delphi
class property DefaultMIMETypeToExtensionDictionary: TdxStringsDictionary read;

#Property Value

Type
TdxStringsDictionary

#Remarks

The DefaultMIMETypeToExtensionDictionary and DefaultExtensionToMIMETypeDictionary class properties define how the Google Drive provider converts MIME content types to filename extensions and vice versa.

The DefaultMIMETypeToExtensionDictionary dictionary is automatically populated on loading the dxCloudStorageGoogleDriveProvider unit with the following key – value pairs:

Source Format Dictionary Key Destination Format Dictionary Value
Google Docs ‘application/vnd.google-apps.document’ DOCX (Office Open XML Document) ‘.docx’
Google Sheets ‘application/vnd.google-apps.spreadsheet’ XLSX (Office Open XML Workbook) ‘.xlsx’
PDF (Portable Document Format) ‘application/pdf’ PDF (Portable Document Format) ‘.pdf’

Note

The GetExtension function uses the DefaultMIMETypeToExtensionDictionary class property to obtain filename extensions for Google Documents.

See Also