Skip to content

Commit b999381

Browse files
authored
Merge pull request #8910 from kenjis/docs-uploaded_files.rst
docs: simplify explanation in uploaded_files.rst
2 parents a94130d + 4f819cb commit b999381

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

user_guide_src/source/libraries/uploaded_files.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,10 @@ this code and save it to your **app/Controllers** directory:
8383

8484
.. literalinclude:: uploaded_files/002.php
8585

86-
Since the value of a file upload HTML field doesn't exist, and is stored in the
87-
``$_FILES`` global, only :ref:`rules-for-file-uploads` can be used to validate
88-
the upload file with :doc:`validation`.
86+
Only the :ref:`rules-for-file-uploads` can be used to validate uploaded files.
8987

90-
The rule ``required`` cannot be used either, so if the file is required, use
91-
the rule ``uploaded`` instead.
88+
Therefore, the rule ``required`` cannot be used either, so if the file is required,
89+
use the rule ``uploaded`` instead.
9290

9391
Note that an empty array (``[]``) is passed as the first argument to
9492
``$this->validateData()``. It is because the file validation rules get the data

0 commit comments

Comments
 (0)