Skip to content

Commit dafd120

Browse files
committed
readme.md
1 parent 4844962 commit dafd120

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,9 +818,11 @@ The field under this rule must be valid ipv6.
818818

819819
</details>
820820

821-
<details><summary><strong>extension</strong>:png,jpg,...</summary>
821+
<details><summary><strong>extension</strong>:extension_a,extension_b,...</summary>
822822

823-
The field under this rule must be a file path or url with an extension matching one of those in the given list.
823+
The field under this rule must end with an extension corresponding to one of those listed.
824+
825+
This is useful for validating a file type for a given a path or url. The `mimes` rule should be used for validating uploads.
824826

825827
</details>
826828

0 commit comments

Comments
 (0)