File.size property (JavaScript API for Office)

apps for Office

Gets the document file size in bytes.

Last modified: March 02, 2015

Hosts:

PowerPoint,Word

Added in

1.0

See all support details

var fileSize = file.size;

The file size in bytes.

A checkmark (√) in the following matrix indicates that this method is supported in the corresponding Office host application. An empty cell indicates that the Office host application doesn't support this method.

For more information about Office host application and server requirements, see Requirements for running apps for Office.

Office for Windows desktop

Office for Windows RT

Office Online
(in browser)

PowerPoint

Word

Minimum permission level

Restricted

App types

Content, task pane

Library

Office.js

Namespace

Office

Version

Changes

1.0

Introduced

Show:
© 2015 Microsoft