Skip to content

Commit d528d3a

Browse files
FrostyApeOneFrostyApeOne
authored andcommitted
Updated fileName validation to allow spaces
1 parent 0ca3a8f commit d528d3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DfE.ExternalApplications.Api/appsettings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
"AllowOverwrite": true,
8484
"MaxFileSizeBytes": 10000000,
8585
"AllowedExtensions": [ "jpg", "png", "pdf", "docx", "xlsx" ],
86-
"AllowedFileNamePattern": "^[a-zA-Z0-9_-]+$"
86+
"AllowedFileNamePattern": "^[\\sa-zA-Z0-9_-]+$",
87+
"AllowedFileNamePatternFriendlyList": "a-z A-Z 0-9 _ - space"
8788
}
8889
},
8990
"NotificationService": {

0 commit comments

Comments
 (0)