File resource type

The File resource groups file-related data items into a single structure.

If a DriveItem has a non-null file facet, the item represents an file. In addition to other properties, files have a content relationship which contains the byte stream of the file.

JSON representation

Here is a JSON representation of the resource.

{
  "hashes": {"@odata.type": "microsoft.graph.hashes"},
  "mimeType": "string",
  "processingMetadata": false
}

Properties

Property Type Description
hashes Hashes Hashes of the file's binary content, if available. Read-only.
mimeType string The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded. Read-only.
processingMetadata Boolean Flag indicating if the item is still being processed to extract metadata

Remarks

For more information about the facets on a DriveItem, see DriveItem.