@@ -32,7 +32,7 @@ find reference information.
3232Creating the Upload Form
3333========================
3434
35- Using a text editor, create a form called upload_form.php. In it, place
35+ Using a text editor, create a form called ** upload_form.php ** . In it, place
3636this code and save it to your **app/Views/ ** directory:
3737
3838.. literalinclude :: uploaded_files/001.php
4646The Success Page
4747================
4848
49- Using a text editor, create a form called upload_success.php. In it,
49+ Using a text editor, create a form called ** upload_success.php ** . In it,
5050place this code and save it to your **app/Views/ ** directory::
5151
5252 <!DOCTYPE html>
@@ -72,7 +72,7 @@ place this code and save it to your **app/Views/** directory::
7272The Controller
7373==============
7474
75- Using a text editor, create a controller called Upload.php. In it, place
75+ Using a text editor, create a controller called ** Upload.php ** . In it, place
7676this code and save it to your **app/Controllers/ ** directory:
7777
7878.. literalinclude :: uploaded_files/002.php
@@ -81,6 +81,13 @@ this code and save it to your **app/Controllers/** directory:
8181 only :ref: `rules-for-file-uploads ` can be used to validate upload file with :doc: `validation `.
8282 The rule ``required `` also can't be used, so use ``uploaded `` instead.
8383
84+ The Routes
85+ ==========
86+
87+ Using a text editor, open **app/Config/Routes.php **. In it, add the following two routes:
88+
89+ .. literalinclude :: uploaded_files/021.php
90+
8491The Upload Directory
8592====================
8693
0 commit comments