[18.0][IMP] dms: Clean up attachments after creation of file#470
[18.0][IMP] dms: Clean up attachments after creation of file#470
Conversation
pedrobaeza
left a comment
There was a problem hiding this comment.
Why an attachment is created in first place?
|
@pedrobaeza It reuses |
|
Then isn't better to do the upload other way for not generating that garbage? |
|
@pedrobaeza I don't know if it's used for something, I assume there is / was a reason to use the endpoint. |
|
I don't think so apart from reducing the code in this part, but having that side effects, this is to be questioned. @victoralmau can you confirm? |
I see that this was added in v16 (#262), since there is already a method in the |
|
Yes, but as said, with this high side effect, I would switch again to have the complete upload handle here in this module instead of using the other, but generating the garbage. Maybe a part of the other code can be used without generating the attachment. |
Fixes: #468