Skip to content

Commit 83b1628

Browse files
authored
docs: Small typos in libraries/uploaded_files.rst
Small typos in libraries/uploaded_files.rst
1 parent 6ceb3e5 commit 83b1628

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

user_guide_src/source/libraries/uploaded_files.rst

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Uploading a file involves the following general process:
3030
uploaded based on the preferences you set.
3131
- Once uploaded, the user will be shown a success message.
3232

33-
To demonstrate this process here is brief tutorial. Afterward you'll
33+
To demonstrate this process here is a brief tutorial. Afterward you'll
3434
find reference information.
3535

3636
Creating the Upload Form
@@ -83,9 +83,9 @@ 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
86+
Since HTML file element has no value attribute, and the upload file is stored in the
8787
``$_FILES`` global, only :ref:`rules-for-file-uploads` can be used to validate
88-
upload file with :doc:`validation`.
88+
the upload file with :doc:`validation`.
8989

9090
The rule ``required`` cannot be used either, so if the file is required, use
9191
the rule ``uploaded`` instead.
@@ -250,7 +250,7 @@ In controller:
250250
Working with the File
251251
*********************
252252

253-
Once you've retrieved the UploadedFile instance, you can retrieve information about the file in safe ways, as well as
253+
Once you've retrieved the UploadedFile instance, you can get information about the file in safe ways, as well as
254254
move the file to a new location.
255255

256256
.. _verify-a-file:
@@ -315,7 +315,7 @@ Returns the original file extension, based on the file name that was uploaded:
315315
getClientMimeType()
316316
-------------------
317317

318-
Returns the mime type (mime type) of the file as provided by the client. This is NOT a trusted value. For a trusted
318+
Returns the mime type of the file as provided by the client. This is NOT a trusted value. For a trusted
319319
version, use ``getMimeType()`` instead:
320320

321321
.. literalinclude:: uploaded_files/015.php
@@ -365,15 +365,15 @@ as the third parameter:
365365
Check if the File Moved
366366
-----------------------
367367

368-
Once the file has been removed the temporary file is deleted. You can check if a file has been moved already with
368+
Once the file has been moved the temporary file is deleted. You can check if a file has been moved already with
369369
the ``hasMoved()`` method, which returns a boolean:
370370

371371
.. literalinclude:: uploaded_files/018.php
372372

373373
When Moving Fails
374374
-----------------
375375

376-
Moving an uploaded file can fail, with an HTTPException, under several circumstances:
376+
Moving an uploaded file can fail, with an ``HTTPException``, under several circumstances:
377377

378378
- the file has already been moved
379379
- the file did not upload successfully
@@ -398,8 +398,4 @@ passing it as the second parameter:
398398

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

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)
401+
Storing an uploaded file can fail, with an ``HTTPException``, under same circumstances like moving file.

0 commit comments

Comments
 (0)