Further Fix for file upload

This commit is contained in:
George Kalampokis 2020-09-28 14:59:50 +03:00
parent 261b688db0
commit 9c3b87535e
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ export class DmpService {
} else if (Array.isArray(fileList)) { } else if (Array.isArray(fileList)) {
formData.append('files', fileList); formData.append('files', fileList);
} else { } else {
formData.append('file', fileList); formData.append('file', fileList, dmpTitle);
} }
for (let j = 0; j < dmpProfiles.length; j++) { for (let j = 0; j < dmpProfiles.length; j++) {
formData.append('profiles', dmpProfiles[j].id); formData.append('profiles', dmpProfiles[j].id);