Skip to content

Commit 4b6bcfa

Browse files
authored
docs: Rollback misleading changes in libraries/uploaded_files.rst
Rollback misleading changes in libraries/uploaded_files.rst
1 parent 83b1628 commit 4b6bcfa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

user_guide_src/source/libraries/uploaded_files.rst

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

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

86-
Since HTML file element has no value attribute, and the upload file is stored in the
86+
Since the value of a file upload HTML field doesn't exist, and is stored in the
8787
``$_FILES`` global, only :ref:`rules-for-file-uploads` can be used to validate
8888
the upload file with :doc:`validation`.
8989

@@ -398,4 +398,8 @@ passing it as the second parameter:
398398

399399
.. literalinclude:: uploaded_files/020.php
400400

401-
Storing an uploaded file can fail, with an ``HTTPException``, under same circumstances like moving file.
401+
Moving an uploaded file can fail, with an ``HTTPException``, under several circumstances:
402+
403+
- the file has already been moved
404+
- the file did not upload successfully
405+
- the file move operation fails (e.g., improper permissions)

0 commit comments

Comments
 (0)