--- title: File.fileSize slug: Web/API/File/fileSize tags: - DOM - Files - Property translation_of: Web/API/File/fileSize ---

{{APIRef("File API") }}{{non-standard_header}}

{{deprecated_header(7.0)}}

Summary

Returns the size of a file in bytes.

This property is deprecated. Use {{domxref("Blob.size")}} instead.

Syntaxe

var size = instanceOfFile.fileSize

Value

A number

Specification

Not part of any specification.

See also