webtorrent / create-torrent

Create .torrent files
https://webtorrent.io
MIT License
341 stars 94 forks source link

createTorrent sin File or FileEntry doesn't work #121

Closed PaTiToMaSteR closed 1 year ago

PaTiToMaSteR commented 3 years ago

What version of this package are you using? latest What operating system, Node.js, and npm version? macos, node 12, npm latest What happened? Following https://developer.mozilla.org/en-US/docs/Web/API/File/File I created as an example the File object as its described in the example:

var file = new File(["foo"], "foo.txt", {
  type: "text/plain",
});

then try to create a torrent using the provided example: createTorrent([file], { name: "whatever" } (err, torrent) => {});

What did you expect to happen? That createTorrent could identify File objects as expected and create the .torrent

Are you willing to submit a pull request to fix this bug? I don't feel I have enough knowledge to know what to touch, but reach me out!

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

ThaUnknown commented 2 years ago

this has been fixed for a while no?