Allow to upload from file array to DMP service
This commit is contained in:
parent
58ef4800c2
commit
1d7b886e98
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue