Further Fix for file upload
This commit is contained in:
parent
261b688db0
commit
9c3b87535e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue