WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Can't send blob file #540

@JenGL

Description

@JenGL

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions