blob: f4d832f944fa2570cc7fb23217f72d96528dffbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
---
title: File.fileSize
slug: Web/API/Blob/size
tags:
- DOM
- Files
- Property
translation_of: Web/API/File/fileSize
original_slug: Web/API/File/fileSize
---
<p>{{APIRef("File API") }}{{non-standard_header}}</p>
<p>{{deprecated_header(7.0)}}</p>
<h2 id="Summary">Summary</h2>
<p>Returns the size of a file in bytes.</p>
<div class="note">This property is deprecated. Use {{domxref("Blob.size")}} instead.</div>
<h2 id="Syntaxe">Syntaxe</h2>
<pre>var size = <em>instanceOfFile</em>.fileSize</pre>
<h2 id="Value">Value</h2>
<p>A number</p>
<h2 id="Specification">Specification</h2>
<p>Not part of any specification.</p>
<h2 id="See_also">See also</h2>
<ul>
<li>{{domxref("Blob.size")}}</li>
</ul>
|