--- 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)}}
Returns the size of a file in bytes.
var size = instanceOfFile.fileSize
A number
Not part of any specification.