You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: validation.md
+7-22Lines changed: 7 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -2125,37 +2125,22 @@ The `File::image()` rule makes sure that the file under validation must be an im
2125
2125
> By default the File::image() rule does not allow SVG files due to possible XSS attacks.
2126
2126
> If you need to allow SVG files, you can pass `allowSvg: true` as argument, e.g. `File::image(allowSvg: true)` and handle potentially unsafe SVG files manually.
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.
2131
2132
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:
> More information regarding validating image dimensions may be found in the [dimension rule documentation](#rule-dimensions).
2147
-
2148
-
<aname="validating-files-file-sizes"></a>
2149
-
#### File Sizes
2150
-
2151
-
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:
0 commit comments