Skip to content

Commit 66dfd8c

Browse files
authored
Merge pull request #8889 from obozdag/patch-3
docs: Small typos in libraries/uploaded_files.rst
2 parents 4e0719b + 4b6bcfa commit 66dfd8c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

user_guide_src/source/libraries/uploaded_files.rst

Lines changed: 6 additions & 6 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
@@ -85,7 +85,7 @@ this code and save it to your **app/Controllers** directory:
8585

8686
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
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

0 commit comments

Comments
 (0)