From feb0e17656e5f83ccb151bca6196609b28e12e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Popovics=20Andr=C3=A1s?= Date: Fri, 24 Nov 2017 14:16:35 +0000 Subject: [PATCH] [ADF-2022] Make allowed extension more obvious (#2722) * Make allowed extension more obvious * Update documentation --- demo-shell/src/app/components/files/files.component.html | 8 +++++--- docs/upload.service.md | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/demo-shell/src/app/components/files/files.component.html b/demo-shell/src/app/components/files/files.component.html index a9a92a33c5..dea9e8268e 100644 --- a/demo-shell/src/app/components/files/files.component.html +++ b/demo-shell/src/app/components/files/files.component.html @@ -370,9 +370,11 @@
Upload
- - + +
diff --git a/docs/upload.service.md b/docs/upload.service.md index d655870793..33ae7c0639 100644 --- a/docs/upload.service.md +++ b/docs/upload.service.md @@ -38,7 +38,7 @@ Provides access to various APIs related to file upload features. Is possible add an ignore list for files that you don't want to allow upload on your CS. The configuration of this service is saved in the ***app.config.json file***.If you want more details about the configuration service follow this [link](https://github.com/Alfresco/alfresco-ng2-components/tree/master/ng2-components/ng2-alfresco-core#appconfigservice). -In the example below you can see how filtered out the : '.git', '.DS_Store' and 'desktop.ini'. +In the example below you can see how filtered out the : '.git', '.DS_Store' and 'desktop.ini'. **Every element is a glob pattern string.** So, if you want to exclude all the txt files, you can add the "*.txt". (notice the asterisk at the beginning of the pattern!) **app.config.json** @@ -50,7 +50,7 @@ In the example below you can see how filtered out the : '.git', '.DS_Store' and "name": "Alfresco" }, "files": { - "excluded": [".DS_Store", "desktop.ini", ".git"] + "excluded": [".DS_Store", "desktop.ini", ".git", "*.txt"] } } ```