Blob.prototype.type

The type of the blob as a string.

The type is an empty string if the it is unknown.

Syntax

type

Example

let blob = new Blob(['Hello, world!'], {type: 'text/plain'})
blob.type
"text/plain"