Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
msSaveBlob
go
Collapse the table of content
Expand the table of content

msSaveBlob method

Saves the File or Blob to disk.

Syntax

var retVal = navigator.msSaveBlob(blob, defaultName);

Parameters

blob [in]

Type: any

defaultName [in, optional]

Type: DOMString

retVal [out, retval]

Type: boolean

One of the following:

ValueMeaning
False

A failure occurred.

True

True is returned as long as the notification bar is displayed.

 

Return value

Type: boolean

One of the following:

False

A failure occurred.

True

True is returned as long as the notification bar is displayed.

Remarks

When a site calls this method, the behavior is the same as when Windows Internet Explorer downloads a file with this in the header:

Content-Length: <blob.size>
Content-Type: <blob.type>
Content-Disposition: attachment;filename=<defaultName>
X-Download-Options: noopen

This method is asynchronous and has no callbacks.

See also

navigator

 

 

Show:
© 2015 Microsoft