Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upInfo #951
Info #951
Comments
This comment has been minimized.
This comment has been minimized.
|
It sounds like you're using Electron. If you don't set up drop handlers correctly, then the default browser behavior is to just save the file, which is what you're seeing. I recommend reading the |
This comment has been minimized.
This comment has been minimized.
|
Where I can found more help to set up drop handlers? I can't find much help in docs. |
This comment has been minimized.
This comment has been minimized.
|
Have you tried the code in the "Creating a new torrent and seed it (in the browser)" example on this page: https://webtorrent.io/intro |
This comment has been minimized.
This comment has been minimized.
|
yes but didn't work. Myn actual code look like:
before I pass only 'draganddrop' as object, it's my div to drag files, but never show me other option more that save the file draged, and I want to add the torrent to the client via addTorrent function. |
This comment has been minimized.
This comment has been minimized.
|
I'm sorry, I don't understand what you're asking. |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
I'm trying to load a .torrent file from my desktop in a app make with electron, but when I add the .torrent file to appp y Only have the option to save the file, and I don't know how to fix it.
Also the dragDrop function give me an error on start that say:
Uncaught TypeError: Cannot read property 'addEventListener' of null
Can anyone hel me?¿