MaxSizeValidator change?
Spanky <[email protected]> Tue, 11 Mar 2008 12:31:41 -0700
| Newsgroups | gmane.comp.web.zope.plone.devel,gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Greetings! The MaxSizeValidator provided by Products.validation.validators.SupplValidators gives a really un-user-friendly error message. Anyone against changing it? Currently you get: Validation failed(checkImageMaxSize: Uploaded data is too large: 1.852MB (max 1.000000MB) Something a little nicer might be: "This file (1.85MB) exceeds the maximum allowed size of 1.00MB" -or maybe- "This file is 1.85MB, which exceeds the maximum allowed size of 1.00MB, please try a smaller file." Other ideas of verbiage solicited. -- ~Spanky ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/