Skip to content

Commit 56748a8

Browse files
committed
wip
1 parent eab32e2 commit 56748a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

validation.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,17 @@ If your application accepts images uploaded by your users, you may use the `File
20512051
> **Note**
20522052
> More information regarding validating image dimensions may be found in the [dimension rule documentation](#rule-dimensions).
20532053
2054+
<a name="validating-files-file-sizes"></a>
2055+
#### File Sizes
2056+
2057+
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:
2058+
2059+
```php
2060+
File::image()
2061+
->min('1kb')
2062+
->max('10mb')
2063+
```
2064+
20542065
<a name="validating-files-file-types"></a>
20552066
#### File Types
20562067

0 commit comments

Comments
 (0)