diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pt-pt/web/api/filereader/abort | |
parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip |
initial commit
Diffstat (limited to 'files/pt-pt/web/api/filereader/abort')
-rw-r--r-- | files/pt-pt/web/api/filereader/abort/index.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/files/pt-pt/web/api/filereader/abort/index.html b/files/pt-pt/web/api/filereader/abort/index.html new file mode 100644 index 0000000000..3ffeae8ce9 --- /dev/null +++ b/files/pt-pt/web/api/filereader/abort/index.html @@ -0,0 +1,58 @@ +--- +title: FileReader.abort() +slug: Web/API/FileReader/abort +tags: + - API + - Ficheiros + - File API + - FileReader + - Referencia + - abort + - metodo +translation_of: Web/API/FileReader/abort +--- +<div>{{APIRef("File API")}}</div> + +<p>O método <strong><code>abort</code></strong> aborta a operação de leitura. Ao completar o abortamento, o {{domxref("FileReader.readyState","readyState")}} é <code>DONE</code>.</p> + +<h2 id="Sintaxe">Sintaxe</h2> + +<pre class="syntaxbox notranslate"><var>instanceOfFileReader</var>.abort();</pre> + +<h3 id="Exceções">Exceções</h3> + +<dl> + <dt><code>DOM_FILE_ABORT_ERR</code></dt> + <dd>Lançado quando <code>abort</code> é chamado enquanto não há uma operação de leitura em progresso (ou seja, quando o <em>state</em> não é <code>LOADING</code>).</dd> +</dl> + +<h2 id="Especificações">Especificações</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Especificação</th> + <th scope="col">Estado</th> + <th scope="col">Comentário</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName("File API", "#abort", "abort()")}}</td> + <td>{{Spec2("File API")}}</td> + <td>Definição inicial</td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilidade">Compatibilidade</h2> + + + +<p>{{Compat("api.FileReader.abort")}}</p> + +<h2 id="Ver_também">Ver também</h2> + +<ul> + <li>{{domxref("FileReader")}}</li> +</ul> |