|
420 | 420 | </varlistentry>
|
421 | 421 |
|
422 | 422 | </variablelist>
|
423 |
| - <variablelist role="constant_list"> |
| 423 | + <variablelist xml:id="filesystem.constants.upload" role="constant_list"> |
| 424 | + <title>PHP File Upload Constants</title> |
424 | 425 | <varlistentry xml:id="constant.upload-err-cant-write">
|
425 |
| - <term><constant>UPLOAD_ERR_CANT_WRITE</constant></term> |
| 426 | + <term> |
| 427 | + <constant>UPLOAD_ERR_CANT_WRITE</constant> |
| 428 | + (<type>int</type>) |
| 429 | + </term> |
426 | 430 | <listitem>
|
427 | 431 | <para>
|
428 | 432 | Failed to write file to disk.
|
| 433 | + The value of the constant is <literal>7</literal>. |
429 | 434 | </para>
|
430 | 435 | </listitem>
|
431 | 436 | </varlistentry>
|
432 | 437 | <varlistentry xml:id="constant.upload-err-extension">
|
433 |
| - <term><constant>UPLOAD_ERR_EXTENSION</constant></term> |
| 438 | + <term> |
| 439 | + <constant>UPLOAD_ERR_EXTENSION</constant> |
| 440 | + (<type>int</type>) |
| 441 | + </term> |
434 | 442 | <listitem>
|
435 | 443 | <para>
|
436 | 444 | A PHP extension stopped the file upload. PHP does not
|
437 | 445 | provide a way to ascertain which extension caused the file upload to
|
438 | 446 | stop; examining the list of loaded extensions with <function>phpinfo</function> may help.
|
| 447 | + The value of the constant is <literal>8</literal>. |
439 | 448 | </para>
|
440 | 449 | </listitem>
|
441 | 450 | </varlistentry>
|
442 | 451 | <varlistentry xml:id="constant.upload-err-form-size">
|
443 |
| - <term><constant>UPLOAD_ERR_FORM_SIZE</constant></term> |
| 452 | + <term> |
| 453 | + <constant>UPLOAD_ERR_FORM_SIZE</constant> |
| 454 | + (<type>int</type>) |
| 455 | + </term> |
444 | 456 | <listitem>
|
445 | 457 | <para>
|
446 | 458 | The uploaded file exceeds the <emphasis>MAX_FILE_SIZE</emphasis>
|
447 | 459 | directive that was specified in the HTML form.
|
| 460 | + The value of the constant is <literal>2</literal>. |
448 | 461 | </para>
|
449 | 462 | </listitem>
|
450 | 463 | </varlistentry>
|
451 | 464 | <varlistentry xml:id="constant.upload-err-ini-size">
|
452 |
| - <term><constant>UPLOAD_ERR_INI_SIZE</constant></term> |
| 465 | + <term> |
| 466 | + <constant>UPLOAD_ERR_INI_SIZE</constant> |
| 467 | + (<type>int</type>) |
| 468 | + </term> |
453 | 469 | <listitem>
|
454 | 470 | <para>
|
455 | 471 | The uploaded file exceeds the
|
456 | 472 | <link linkend="ini.upload-max-filesize">upload_max_filesize</link>
|
457 | 473 | directive in &php.ini;.
|
| 474 | + The value of the constant is <literal>1</literal>. |
458 | 475 | </para>
|
459 | 476 | </listitem>
|
460 | 477 | </varlistentry>
|
461 | 478 | <varlistentry xml:id="constant.upload-err-no-file">
|
462 |
| - <term><constant>UPLOAD_ERR_NO_FILE</constant></term> |
| 479 | + <term> |
| 480 | + <constant>UPLOAD_ERR_NO_FILE</constant> |
| 481 | + (<type>int</type>) |
| 482 | + </term> |
463 | 483 | <listitem>
|
464 | 484 | <para>
|
465 | 485 | No file was uploaded.
|
| 486 | + The value of the constant is <literal>4</literal>. |
466 | 487 | </para>
|
467 | 488 | </listitem>
|
468 | 489 | </varlistentry>
|
469 | 490 | <varlistentry xml:id="constant.upload-err-no-tmp-dir">
|
470 |
| - <term><constant>UPLOAD_ERR_NO_TMP_DIR</constant></term> |
| 491 | + <term> |
| 492 | + <constant>UPLOAD_ERR_NO_TMP_DIR</constant> |
| 493 | + (<type>int</type>) |
| 494 | + </term> |
471 | 495 | <listitem>
|
472 | 496 | <para>
|
473 | 497 | Missing a temporary folder.
|
| 498 | + The value of the constant is <literal>6</literal>. |
474 | 499 | </para>
|
475 | 500 | </listitem>
|
476 | 501 | </varlistentry>
|
477 | 502 | <varlistentry xml:id="constant.upload-err-ok">
|
478 |
| - <term><constant>UPLOAD_ERR_OK</constant></term> |
| 503 | + <term> |
| 504 | + <constant>UPLOAD_ERR_OK</constant> |
| 505 | + (<type>int</type>) |
| 506 | + </term> |
479 | 507 | <listitem>
|
480 | 508 | <para>
|
481 | 509 | There is no error, the file uploaded with success.
|
| 510 | + The value of the constant is <literal>0</literal>. |
482 | 511 | </para>
|
483 | 512 | </listitem>
|
484 | 513 | </varlistentry>
|
485 | 514 | <varlistentry xml:id="constant.upload-err-partial">
|
486 |
| - <term><constant>UPLOAD_ERR_PARTIAL</constant></term> |
| 515 | + <term> |
| 516 | + <constant>UPLOAD_ERR_PARTIAL</constant> |
| 517 | + (<type>int</type>) |
| 518 | + </term> |
487 | 519 | <listitem>
|
488 | 520 | <para>
|
489 | 521 | The uploaded file was only partially uploaded.
|
| 522 | + The value of the constant is <literal>3</literal>. |
490 | 523 | </para>
|
491 | 524 | </listitem>
|
492 | 525 | </varlistentry>
|
|
0 commit comments