Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring input without any warning #925

Closed
roune opened this issue Sep 19, 2016 · 2 comments
Closed

Ignoring input without any warning #925

roune opened this issue Sep 19, 2016 · 2 comments

Comments

@roune
Copy link

@roune roune commented Sep 19, 2016

  • WebTorrent version: Last
  • Browser name/version (if using WebTorrent in the browser): Chrome 52.0.2743.98 32bits

I am working on using webtorrent within a cordova app but I am having really big troubles when seeding due to the input. I use a plugin named imagePicker, which returns a URI which I convert to a FileEntry and then finnally to a File object. My problem is when I pass this File objects to the client.seed, nothing starts seeding (not even the callback is executed) and I get no warning from the WebTorrent library or Chrome's permissions. If I check later the current torrents, I have nothing.
The client.add part works, at least the callback is called.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Oct 30, 2016

I don't think you can actually create a File object, right? The best you can do is create a Blob that has the extra properties that File has: https://developer.mozilla.org/en-US/docs/Web/API/File

I haven't tried using webtorrent with cordova before. If you figure out the cause of the issue and its webtorrent's fault, please send a PR.

@feross feross closed this Oct 30, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.