Skip to content

Commit aa684e6

Browse files
committed
Update validation.md
1 parent 84f56ee commit aa684e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

validation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,7 @@ Laravel provides a variety of validation rules that may be used to validate uplo
21082108

21092109

21102110
<a name="validating-files-file-sizes"></a>
2111-
#### File Sizes
2111+
#### Validating File Sizes
21122112

21132113
For convenience, minimum and maximum file sizes may be specified as a string with a suffix indicating the file size units. The `kb`, `mb`, `gb`, and `tb` suffixes are supported.
21142114
You may also validate the dimensions of an image. For example, to validate that an uploaded image is at least 1000 pixels wide and 500 pixels tall, you may use the `dimensions` rule:
@@ -2122,7 +2122,7 @@ File::types(['mp3', 'wav'])
21222122
<a name="validating-files-image-files"></a>
21232123
#### Validating Image Files
21242124

2125-
If your application accepts images uploaded by your users, you may use the `File` rule's `image` constructor method to indicate that the uploaded file should be an image.
2125+
To validate that uploaded files are images, you can use the `File` rule's image constructor method.
21262126

21272127
use Illuminate\Support\Facades\Validator;
21282128
use Illuminate\Validation\Rule;
@@ -2155,7 +2155,7 @@ File::image()
21552155
> More information regarding validating image dimensions may be found in the [dimension rule documentation](#rule-dimensions).
21562156
21572157
<a name="validating-files-file-types"></a>
2158-
#### File Types
2158+
#### Validating File Types
21592159

21602160
Even though you only need to specify the extensions when invoking the `types` method, this method actually validates the MIME type of the file by reading the file's contents and guessing its MIME type. A full listing of MIME types and their corresponding extensions may be found at the following location:
21612161

0 commit comments

Comments
 (0)