@@ -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
3434find reference information.
3535
3636Creating the Upload Form
@@ -85,7 +85,7 @@ this code and save it to your **app/Controllers** directory:
8585
8686Since 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
9090The rule ``required `` cannot be used either, so if the file is required, use
9191the rule ``uploaded `` instead.
@@ -250,7 +250,7 @@ In controller:
250250Working 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
254254move 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:
315315getClientMimeType()
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
319319version, use ``getMimeType() `` instead:
320320
321321.. literalinclude :: uploaded_files/015.php
@@ -365,15 +365,15 @@ as the third parameter:
365365Check 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
369369the ``hasMoved() `` method, which returns a boolean:
370370
371371.. literalinclude :: uploaded_files/018.php
372372
373373When 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