Skip to main content

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

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