Skip to content

Commit

Permalink
Merge pull request #8889 from obozdag/patch-3
Browse files Browse the repository at this point in the history
docs: Small typos in libraries/uploaded_files.rst
  • Loading branch information
kenjis authored May 24, 2024
2 parents 4e0719b + 4b6bcfa commit 66dfd8c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions user_guide_src/source/libraries/uploaded_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Uploading a file involves the following general process:
uploaded based on the preferences you set.
- Once uploaded, the user will be shown a success message.

To demonstrate this process here is brief tutorial. Afterward you'll
To demonstrate this process here is a brief tutorial. Afterward you'll
find reference information.

Creating the Upload Form
Expand Down Expand Up @@ -85,7 +85,7 @@ this code and save it to your **app/Controllers** directory:

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

The rule ``required`` cannot be used either, so if the file is required, use
the rule ``uploaded`` instead.
Expand Down Expand Up @@ -250,7 +250,7 @@ In controller:
Working with the File
*********************

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

.. _verify-a-file:
Expand Down Expand Up @@ -315,7 +315,7 @@ Returns the original file extension, based on the file name that was uploaded:
getClientMimeType()
-------------------

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

.. literalinclude:: uploaded_files/015.php
Expand Down Expand Up @@ -365,15 +365,15 @@ as the third parameter:
Check if the File Moved
-----------------------

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

.. literalinclude:: uploaded_files/018.php

When Moving Fails
-----------------

Moving an uploaded file can fail, with an HTTPException, under several circumstances:
Moving an uploaded file can fail, with an ``HTTPException``, under several circumstances:

- the file has already been moved
- the file did not upload successfully
Expand Down

0 comments on commit 66dfd8c

Please sign in to comment.