From 8b00b1328a96c252763cd29e2081b5001b97298c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 4 Jan 2025 11:31:08 +0100 Subject: [PATCH] #396 use regex for file name checking for binary files --- lam/HISTORY | 2 +- .../manual-sources/chapter-selfService.xml | 26 +++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/lam/HISTORY b/lam/HISTORY index fd3d83139..849cb707f 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -2,7 +2,7 @@ March 2025 9.1 - Usability improvements (360) - Fixed bugs: -> Ambiguous tooltip on profile editor for Shadow users (#394) - -> Self service photo file (#396) + -> Self service photo file enhancements (#396) 17.12.2024 9.0 diff --git a/lam/docs/manual-sources/chapter-selfService.xml b/lam/docs/manual-sources/chapter-selfService.xml index 0e7e281d4..74d1c1fe7 100644 --- a/lam/docs/manual-sources/chapter-selfService.xml +++ b/lam/docs/manual-sources/chapter-selfService.xml @@ -1703,11 +1703,12 @@ Label that is displayed on page - optional regular expression for validation (e.g. - "/^[0-9a-zA-Z]+$/") + Optional regular expression for validation (e.g. + "/^[0-9a-zA-Z]+$/"). For binary fields the file name will be + checked. - validation message if value does not match validation - expression + Validation message if value does not match validation + expression. @@ -1721,11 +1722,12 @@ Label that is displayed on page - optional regular expression for validation (e.g. - "/^[0-9a-zA-Z]+$/") + Optional regular expression for validation (e.g. + "/^[0-9a-zA-Z]+$/"). For binary fields the file name will be + checked. - validation message if value does not match validation - expression + Validation message if value does not match validation + expression. @@ -1800,6 +1802,14 @@ constant::userAccountControl::512 + + + + Binary file: + + required::jpegPhoto;binary::Photo::/.jp(e)?g$/i::Please select a + JPG file +