IPWorks Cloud 2020 Python Edition

Questions / Feedback?

resource_mime_type Property

The MIME type of the resource.

Syntax

def get_resource_mime_type(resource_index: int) -> str: ...
def set_resource_mime_type(resource_index: int, value: str) -> None: ...

Default Value

""

Remarks

The MIME type of the resource.

This property specifies the MIME type of the resource.

When calling upload_file, this property is ignored in favor of the MimeType parameter of upload_file.

When calling update_resource, this property is only submitted if new file data is being uploaded.

Some Google Drive MIME types:

application/vnd.google-apps.audio
application/vnd.google-apps.document Google Docs
application/vnd.google-apps.drawing Google Drawing
application/vnd.google-apps.file Google Drive file
application/vnd.google-apps.folder Google Drive folder
application/vnd.google-apps.form Google Forms
application/vnd.google-apps.fusiontable Google Fusion Tables
application/vnd.google-apps.kix Google Docs
application/vnd.google-apps.photo
application/vnd.google-apps.presentation Google Slides
application/vnd.google-apps.script Google Apps Scripts
application/vnd.google-apps.sites Google Sites
application/vnd.google-apps.spreadsheet Google Sheets
application/vnd.google-apps.unknown
application/vnd.google-apps.video

The resource_index parameter specifies the index of the item in the array. The size of the array is controlled by the resource_count property.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Python Edition - Version 20.0 [Build 8265]