Skip to content

Commit

Permalink
Implement proposed fixes for previous suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
dgvirtual committed Oct 4, 2023
1 parent c672b2b commit 20b496b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user_guide_src/source/libraries/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,8 @@ Rule Parameter Description
======================= ========== ============================================= ===================================================
uploaded Yes Fails if the name of the parameter does not ``uploaded[field_name]``
match the name of any uploaded files.
Prevents form from validating if file upload
is required.
If you want the file upload to be optional (not required),
do not define this rule.

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

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

0 comments on commit 20b496b

Please sign in to comment.