[ADF-2022] Make allowed extension more obvious (#2722)

* Make allowed extension more obvious

* Update documentation
This commit is contained in:
Popovics András 2017-11-24 14:16:35 +00:00 committed by Eugenio Romano
parent aedaf447ce
commit feb0e17656
2 changed files with 7 additions and 5 deletions

View File

@ -370,9 +370,11 @@
<h5>Upload</h5>
<section *ngIf="acceptedFilesTypeShow">
<mat-form-field>
<input matInput placeholder="Extension accepted" [(ngModel)]="acceptedFilesType"
data-automation-id="accepted-files-type">
<mat-form-field floatPlaceholder="float">
<input matInput
placeholder="Extension accepted"
[(ngModel)]="acceptedFilesType"
data-automation-id="accepted-files-type">
</mat-form-field>
</section>
<section *ngIf="maxSizeShow">

View File

@ -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"]
}
}
```