mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#46 Upload files in a folder
This commit is contained in:
@@ -77,6 +77,9 @@ export class UploadButtonComponent {
|
||||
@Input()
|
||||
acceptedFilesType: string = '*';
|
||||
|
||||
@Input()
|
||||
uploaddirectory: string = '';
|
||||
|
||||
filesUploadingList: FileModel [] = [];
|
||||
|
||||
translate: TranslateService;
|
||||
@@ -109,6 +112,7 @@ export class UploadButtonComponent {
|
||||
let files = $event.currentTarget.files;
|
||||
if (files.length) {
|
||||
let latestFilesAdded = this._uploaderService.addToQueue(files);
|
||||
this._uploaderService.uploadFilesInTheQueue(this.uploaddirectory);
|
||||
this.filesUploadingList = this._uploaderService.getQueue();
|
||||
if (this.showUploadDialog) {
|
||||
this._showDialog();
|
||||
|
Reference in New Issue
Block a user