Changes between Version 1 and Version 2 of Ticket #27263


Ignore:
Timestamp:
Sep 23, 2016, 2:39:52 AM (8 years ago)
Author:
Alexey Rogachev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27263 – Description

    v1 v2  
    1515The problem is, when I load the bigger file and with different extension, both validators execute and both error messages are shown for field (about exceeding max limit and wrong extension).
    1616
    17 What I want - if first validator failed, don't even apply the rest of validators. For this specific scenario is not crucial, but in case of bigger amount of validators and more complex checks it can be a problem. For example if we need to read the file and verify that something exists there, why whe should do that if it's a size limit already exceeded.
     17What I want - if first validator failed, don't even apply the rest of validators. For this specific scenario is not crucial, but in case of bigger amount of validators and more complex checks it can be a problem. For example if we need to read the file and verify that something exists there, why whe should do that if a size limit already exceeded.
    1818
    1919Another option can be customizing each validator to not execute in case of existing errors.
Back to Top