unlayer/vue-email-editor

Custom Image Library not works

Closed this issue · 0 comments

I have an issue with: "editor.registerCallback('image')".

if I add a:

console.log(file.attachments[0]);

It prints:

File {name: 'xxxxxx.png', lastModified: 1700146279553, lastModifiedDate: Thu Nov 16 2023 15:51:19 GMT+0100 (Ora standard dell’Europa centrale), webkitRelativePath: '', size: 15, …} lastModified : 1700146279553 lastModifiedDate : Thu Nov 16 2023 15:51:19 GMT+0100 {} name : "xxxxxx.png" size : 15 type : "image/png" webkitRelativePath : ""

The file size appears to be 15, but in reality this is not the case. This has been happening for a few days with any image.