mirror of
https://github.com/wekan/wekan.git
synced 2026-03-05 21:30:17 +01:00
Ref: original & and use fileObj.meta
fileObj.meta is part of the ostrio:files API and be passed to the constructor. This is less hacky than trying tu update a persistet object after the fact.
This commit is contained in:
parent
6a9433593b
commit
97356603aa
10 changed files with 123 additions and 158 deletions
|
|
@ -80,11 +80,11 @@ export class Exporter {
|
|||
|
||||
return {
|
||||
_id: attachment._id,
|
||||
cardId: attachment.cardId,
|
||||
cardId: attachment.meta.cardId,
|
||||
//url: FlowRouter.url(attachment.url()),
|
||||
file: filebase64,
|
||||
name: attachment.original.name,
|
||||
type: attachment.original.type,
|
||||
name: attachment.name,
|
||||
type: attachment.type,
|
||||
};
|
||||
});
|
||||
//When has a especific valid attachment return the single element
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue