mirror of
https://github.com/wekan/wekan.git
synced 2026-02-17 05:28:06 +01:00
Treat unknown attachment types as binary on board import/clone
Fixes missing attachments and even missing
This commit is contained in:
parent
a82257f0b1
commit
6bd7f40511
1 changed files with 6 additions and 0 deletions
|
|
@ -474,6 +474,12 @@ export class WekanCreator {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (att.file) {
|
} 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(
|
file.attachData(
|
||||||
Buffer.from(att.file, 'base64'),
|
Buffer.from(att.file, 'base64'),
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue