[ADF-2975] New input for File Upload Button component (#3299)

* new nodeType input

* unit tests

* content type fix

* remove package-lock.json files
This commit is contained in:
Alex Bolboșenco
2018-05-10 21:36:31 +03:00
committed by Eugenio Romano
parent 97f888d49c
commit 4c7a63c95a
6 changed files with 61 additions and 20795 deletions

View File

@@ -28,6 +28,7 @@ export interface FileUploadOptions {
newVersionBaseName?: string;
parentId?: string;
path?: string;
nodeType?: string;
}
export enum FileUploadStatus {

View File

@@ -172,6 +172,10 @@ export class UploadService {
opts.name = file.options.newVersionBaseName;
}
if (file.options.nodeType) {
opts.nodeType = file.options.nodeType;
}
return this.apiService.getInstance().upload.uploadFile(
file.file,
file.options.path,