FileReader.result

  • Revision slug: Web/API/FileReader.result
  • Revision title: FileReader.result
  • Revision id: 481215
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

Summary

Returns the file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.

Syntax

var file = instanceOfFileReader.result

Value

A string or an {{domxref("ArrayBuffer")}} which depends on the method used to initiate the read operation.

Specifications

{{page("/en-US/docs/Web/API/FileReader","Specifications")}}

Browser compatibility

{{page("/en-US/docs/Web/API/FileReader","Browser compatibility")}}

See also

  • {{domxref("FileReader")}}

Revision Source

<h2 id="Summary">Summary</h2>
<p>Returns the file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.</p>
<h2 id="Syntax">Syntax</h2>
<pre class="syntaxbox">
var file = <em>instanceOfFileReader</em>.result
</pre>
<h2 id="Value">Value</h2>
<p>A string or an {{domxref("ArrayBuffer")}} which depends on the method used to initiate the read operation.</p>
<h2 id="Browser_Compatibility" name="Browser_Compatibility">Specifications</h2>
<p>{{page("/en-US/docs/Web/API/FileReader","Specifications")}}</p>
<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2>
<p>{{page("/en-US/docs/Web/API/FileReader","Browser compatibility")}}</p>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{domxref("FileReader")}}</li>
</ul>
Revert to this revision