svn: /phpdoc/es/trunk/reference/session/ upload-progress.xml
| From: | Pedro Antonio Gil Rodríguez | Date: | Mon, 14 Nov 2011 18:42:01 +0000 |
| Subject: | svn: /phpdoc/es/trunk/reference/session/ upload-progress.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-5246@lists.php.net to get a copy of this message | ||
seros Mon, 14 Nov 2011 18:42:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=319191
Log:
Updated to the most recent version
Changed paths:
U phpdoc/es/trunk/reference/session/upload-progress.xml
Modified: phpdoc/es/trunk/reference/session/upload-progress.xml
===================================================================
--- phpdoc/es/trunk/reference/session/upload-progress.xml 2011-11-14 18:32:18 UTC (rev 319190)
+++ phpdoc/es/trunk/reference/session/upload-progress.xml 2011-11-14 18:42:01 UTC (rev 319191)
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 317663 Maintainer: seros Status: ready -->
+<!-- EN-Revision: 319186 Maintainer: seros Status: ready -->
<!-- Reviewed: no -->
<chapter xml:id="session.upload-progress" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
- <title>Session Upload Progress</title>
-
+ <title>Progreso de Subida en Sesiones</title>
+
<para>
Cuando la opción INI
<link
linkend="ini.session.upload-progress.enabled">session.upload_progress.enabled</link>
- está habilitada, PHP será capaz de ratrear el progreso de subida de
+ está habilitada, PHP podrá rastrear el progreso de subida de
ficheros individuales que están siendo subidos.
Esta información no es particularmente útil para la petición de subida real
en sí misma, pero durante la subida del archivo, una aplicación puede enviar una petición POST
@@ -17,55 +17,55 @@
estado.
</para>
<para>
- El progreso de subida estará disponible en la variable superglobal
- <varname>$_SESSION</varname> cuando una subida está en progreso y al usar POST con
una variable con
- el mismo nombre que está establecido
- <link
linkend="ini.session.upload-progress.name">session.upload_progress.name</link>
- INI setting is set to.
- When PHP detects such POST requests, it will populate an array in the
- <varname>$_SESSION</varname>, where the index is a concatenated value of the
+ El progreso de subida estará disponible en la variable superglobal
<varname>$_SESSION</varname>
+ cuando una subida está en progreso, y al usar POST con una variable con
+ el mismo nombre al que está establecido el ajuste INI
+ <link
linkend="ini.session.upload-progress.name">session.upload_progress.name</link>.
+ Cuando PHP detecta tales peticiones POST,
+ rellenará un array en la variable
+ <varname>$_SESSION</varname>, donde el índice es un valor concatenado de las
opciones INI
<link
linkend="ini.session.upload-progress.prefix">session.upload_progress.prefix</link>
- and
- <link
linkend="ini.session.upload-progress.name">session.upload_progress.name</link>
- INI options.
- The key is typically retrieved by reading these INI settings, i.e.
+ y
+ <link
linkend="ini.session.upload-progress.name">session.upload_progress.name</link>.
+ La clave se recupera normalmente leyendo estas opciones INI,
+ es decir
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
-$key = ini_get("session.upload_progress.prefix") .
ini_get("session.upload-progress.name");
-var_dump($_SESSION[$key]);
+$clave = ini_get("session.upload_progress.prefix") .
ini_get("session.upload-progress.name");
+var_dump($_SESSION[$clave]);
?>
]]>
</programlisting>
</informalexample>
</para>
<para>
- It is also possible to <emphasis>cancel</emphasis> the currently in-progress file
- upload, by setting the <literal>$_SESSION[$key]["cancel_upload"]</literal>
key to
+ También es posible <emphasis>cancelar</emphasis> la subida de ficheros que está
+ en progreso, estableciendo la clave
<literal>$_SESSION[$clave]["cancel_upload"]</literal> a
&true;.
- When uploading multiple files in the same request, this will only cancel the
- currently in-progress file upload, and pending file uploads, but will not
- remove successfully completed uploads.
- When a upload is cancelled like this, the <literal>error</literal> key in
- <varname>$_FILES</varname> array will be set to
+ Cuando se suben múltiples ficheros en la misma petición, esto solamente cancelará la
+ subida de ficheros que está en progreso, y las subidas de ficheros pendientes, pero no
+ eliminará de manera satidfactoria las subidas completadas.
+ Cuando una subida se cancela de esta manera, la clave <literal>error</literal> del
+ array <varname>$_FILES</varname> será establecida a
<constant>UPLOAD_ERR_EXTENSION</constant>.
</para>
<para>
- The
+ Las opciones INI
<link
linkend="ini.session.upload-progress.freq">session.upload_progress.freq</link>
- and
+ y
<link
linkend="ini.session.upload-progress.min-freq">session.upload_progress.min_freq</link>
- INI options control how frequent the upload progress information should be
- recalculated.
- With a reasonable amount for these two settings, the overhead of this
- feature is almost non-existing
+ controlan con qué frecuencia debería ser recalculada la información del progreso de
+ subida.
+ Con una cantidad razonable de estos dos ajustes, la sobrecarga de esta
+ característica es casi inexistente
</para>
<para>
<example>
- <title>Example information</title>
+ <title>Ejemplo de información</title>
<para>
- Example of the structure of progress upload array.
+ Ejemplo de la esctructura del array de progreso de subida.
</para>
<programlisting role="html"
xml:id="session.upload-progress.example-form">
<![CDATA[
@@ -78,28 +78,28 @@
]]>
</programlisting>
<para>
- The data stored in the session will look like this:
+ La información almacenada en la sesión se parecerá a esta:
</para>
<programlisting role="php"
xml:id="session.upload-progress.example-array">
<![CDATA[
<?php
$_SESSION["upload_progress_123"] = array(
- "start_time" => 1234567890, // The request time
- "content_length" => 57343257, // POST content length
- "bytes_processed" => 453489, // Amount of bytes received and processed
- "done" => false, // true when the POST handler has finished,
successfully or not
+ "start_time" => 1234567890, // El instante de la petición
+ "content_length" => 57343257, // longitud del contenido de POST
+ "bytes_processed" => 453489, // Cantidad de bytes recividos y procesados
+ "done" => false, // True cuando el gestor de POST ha finalizado,
satisfactoriamente o no
"files" => array(
0 => array(
- "field_name" => "file1", // Name of the <input/> field
- // The following 3 elements equals those in $_FILES
+ "field_name" => "file1", // nombre del campo <input/>
+ // Los siguientes 3 elementos son iguales que aquellos de $_FILES
"name" => "foo.avi",
"tmp_name" => "/tmp/phpxxxxxx",
"error" => 0,
- "done" => true, // True when the POST handler has finished handling
this file
- "start_time" => 1234567890, // When this file has started to be processed
- "bytes_processed" => 57343250, // Amount of bytes received and processed for this
file
+ "done" => true, // True cuando el gestor de POST ha terminado de
manejar este fichero
+ "start_time" => 1234567890, // Cuándo se empezo a procesar este fichero
+ "bytes_processed" => 57343250, // Cantidad de bytes recibidos y procesados de este
fichero
),
- // An other file, not finished uploading, in the same request
+ // Otro fichero, no terminado de subir, en la misma petición
1 => array(
"field_name" => "file2",
"name" => "bar.avi",
@@ -115,7 +115,7 @@
</programlisting>
</example>
</para>
-
+
</chapter>
<!-- Keep this comment at the end of the file