#94 Points 1 2 3 done

This commit is contained in:
mauriziovitale84
2016-05-23 14:15:24 +01:00
parent 92713bc7cb
commit 472f3ed160
2 changed files with 12 additions and 0 deletions

View File

@@ -74,4 +74,14 @@
</alfresco-document-list> </alfresco-document-list>
</alfresco-upload-drag-area> </alfresco-upload-drag-area>
<h5>Single file upload</h5>
<alfresco-upload-button uploaddirectory="{{relativePath}}" currentFolderPath="{{absolutePath}}" (onSuccess)="refreshDocumentList($event)"></alfresco-upload-button> <alfresco-upload-button uploaddirectory="{{relativePath}}" currentFolderPath="{{absolutePath}}" (onSuccess)="refreshDocumentList($event)"></alfresco-upload-button>
<h5>Folder upload</h5>
<alfresco-upload-button uploaddirectory="{{relativePath}}" currentFolderPath="{{absolutePath}}" [uploadFolders]="true"
(onSuccess)="refreshDocumentList($event)"></alfresco-upload-button>
<h5>Multiple file upload</h5>
<input type="text" data-automation-id="accepted-files-type" [(ngModel)]="acceptedFilesType">
<alfresco-upload-button uploaddirectory="{{relativePath}}" currentFolderPath="{{absolutePath}}" acceptedFilesType="{{acceptedFilesType}}"
[multipleFiles]="true"
(onSuccess)="refreshDocumentList($event)"></alfresco-upload-button>

View File

@@ -42,6 +42,8 @@ export class FilesComponent {
absolutePath: string = '/Sites/swsdp/documentLibrary'; absolutePath: string = '/Sites/swsdp/documentLibrary';
relativePath: string = ''; relativePath: string = '';
acceptedFilesType: string = '.jpg,.pdf,.js';
constructor(documentActions: DocumentActionsService) { constructor(documentActions: DocumentActionsService) {
documentActions.setHandler('my-handler', this.myDocumentActionHandler.bind(this)); documentActions.setHandler('my-handler', this.myDocumentActionHandler.bind(this));
} }