Treat unknown attachment types as binary on board import/clone

Fixes missing attachments and even missing
This commit is contained in:
Daniel Eder 2020-12-17 11:10:30 +02:00
parent a82257f0b1
commit 6bd7f40511

View file

@ -474,6 +474,12 @@ export class WekanCreator {
}
});
} else if (att.file) {
//If attribute type is null or empty string is set, assume binary stream
att.type =
!att.type || att.type.trim().length === 0
? 'application/octet-stream'
: att.type;
file.attachData(
Buffer.from(att.file, 'base64'),
{