Skip to content

Commit 20b496b

Browse files
committed
Implement proposed fixes for previous suggestions
1 parent c672b2b commit 20b496b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

user_guide_src/source/libraries/validation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,8 @@ Rule Parameter Description
971971
======================= ========== ============================================= ===================================================
972972
uploaded Yes Fails if the name of the parameter does not ``uploaded[field_name]``
973973
match the name of any uploaded files.
974-
Prevents form from validating if file upload
975-
is required.
974+
If you want the file upload to be optional (not required),
975+
do not define this rule.
976976

977977
max_size Yes Fails if the uploaded file named in the ``max_size[field_name,2048]``
978978
parameter is larger than the second
@@ -997,5 +997,5 @@ is_image Yes Fails if the file cannot be determined to be
997997
The file validation rules apply for both single and multiple file uploads.
998998

999999
.. note:: Only rules specifically created for file validation (like the ones listed in the table above) can be used to validate files.
1000-
Therefore, adding any general rules, like ``permit_empy``, to file validation rules array or string will prevend all rules for the
1001-
from file from being processed during validation.
1000+
Therefore, adding any general rules, like ``permit_empy``, to file validation rules array or string, the file validation will not
1001+
work correctly.

0 commit comments

Comments
 (0)