@@ -126,7 +126,7 @@ request, use ``getFiles()``. This will return an array of files represented by i
126126Of course, there are multiple ways to name the file input, and anything but the simplest can create strange results.
127127The array returns in a manner that you would expect. With the simplest usage, a single file might be submitted like::
128128
129- <input type="file" name="avatar" / >
129+ <input type="file" name="avatar">
130130
131131Which would return a simple array like::
132132
@@ -138,7 +138,7 @@ Which would return a simple array like::
138138
139139If you used an array notation for the name, the input would look something like::
140140
141- <input type="file" name="my-form[details][avatar]" / >
141+ <input type="file" name="my-form[details][avatar]">
142142
143143The array returned by ``getFiles() `` would look more like this::
144144
@@ -153,8 +153,8 @@ The array returned by ``getFiles()`` would look more like this::
153153
154154In some cases, you may specify an array of files to upload::
155155
156- Upload an avatar: <input type="file" name="my-form[details][avatars][]" / >
157- Upload an avatar: <input type="file" name="my-form[details][avatars][]" / >
156+ Upload an avatar: <input type="file" name="my-form[details][avatars][]">
157+ Upload an avatar: <input type="file" name="my-form[details][avatars][]">
158158
159159In this case, the returned array of files would be more like::
160160
@@ -179,7 +179,7 @@ Simplest usage
179179
180180With the simplest usage, a single file might be submitted like::
181181
182- <input type="file" name="userfile" / >
182+ <input type="file" name="userfile">
183183
184184Which would return a simple file instance like:
185185
@@ -190,7 +190,7 @@ Array notation
190190
191191If you used an array notation for the name, the input would look something like::
192192
193- <input type="file" name="my-form[details][avatar]" / >
193+ <input type="file" name="my-form[details][avatar]">
194194
195195For get the file instance:
196196
@@ -201,7 +201,7 @@ Multiple files
201201
202202::
203203
204- <input type="file" name="images[]" multiple / >
204+ <input type="file" name="images[]" multiple>
205205
206206In controller:
207207
@@ -221,8 +221,8 @@ You might find it easier to use ``getFileMultiple()``, to get an array of upload
221221
222222Another example::
223223
224- Upload an avatar: <input type="file" name="my-form[details][avatars][]" / >
225- Upload an avatar: <input type="file" name="my-form[details][avatars][]" / >
224+ Upload an avatar: <input type="file" name="my-form[details][avatars][]">
225+ Upload an avatar: <input type="file" name="my-form[details][avatars][]">
226226
227227In controller:
228228
@@ -334,7 +334,7 @@ Each file can be moved to its new location with the aptly named ``store()`` meth
334334
335335With the simplest usage, a single file might be submitted like::
336336
337- <input type="file" name="userfile" / >
337+ <input type="file" name="userfile">
338338
339339By default, upload files are saved in **writable/uploads ** directory. The **YYYYMMDD ** folder
340340and random file name will be created. Returns a file path:
0 commit comments