-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Milestone
Description
I'm trying to send a file drag and dropped in a div, but i always get this error.
Error: Type "function Blob() { [native code] }" not yet supported.
sendFiles(fileList) {
Array.from(fileList).forEach(file => {
const blob = new Blob([file], { type: file.type });
this.conn.send({
op: operation.FILE,
file: blob,
filename: file.name,
filetype: file.type
});
});
}
I tryed to send directly File Object, Blob or ArrayBuffer. Got always the same error
worldzb