Allow to upload from file array to DMP service

This commit is contained in:
George Kalampokis 2020-10-02 10:35:09 +03:00
parent 58ef4800c2
commit 1d7b886e98
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ export class DmpService {
formData.append('file', fileList[i], dmpTitle);
}
} else if (Array.isArray(fileList)) {
formData.append('files', fileList);
formData.append('file', fileList[0], dmpTitle);
} else {
formData.append('file', fileList, dmpTitle);
}