mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Merge pull request #3395 from daniel-eder/fix/clone-board-binary-attachments
Treat unknown attachment types as binary on board import/clone
This commit is contained in:
commit
86c7fbd717
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