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 upError caused by Filelist type #526
Comments
This comment has been minimized.
This comment has been minimized.
|
@jhiesey Another issue related to the change we made to |
This comment has been minimized.
This comment has been minimized.
|
@gustavomrfz Actually, can you try this again using the latest version of WebTorrent? We may have fixed this issue in the latest version of create-torrent (3.20.2). |
This comment has been minimized.
This comment has been minimized.
|
@feross I tried again with webtorrent 0.67.1 but the issue still persits. |
This comment has been minimized.
This comment has been minimized.
|
@gustavomrfz Can you try again with 0.68.0? There's a chance that it's fixed now. If it's still not, I'll make a sample Electron app and debug this. |
This comment has been minimized.
This comment has been minimized.
|
@feross Still not. I realize that file objects created by file input forms are not the same type in browser than in Electron. Object that Electron makes doesn't have shift() function even when elements are taken individually from a function as $.each(). I belive the issue comes by that way. |
This comment has been minimized.
This comment has been minimized.
|
@gustavomrfz Btw, how have you managed to get drag and drop working in an Electron app? The |
This comment has been minimized.
This comment has been minimized.
|
@feross I'm not using drag and drop, but "classical" input. Indeed, it didn't work when I tried. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
The issue in This is the relevant commit: webtorrent/create-torrent@89eeed3 |
This comment has been minimized.
This comment has been minimized.
|
@feross Was having this issue too in Electron! Awesome, closer and closer. |
This comment has been minimized.
This comment has been minimized.
|
@feross Thanks a lot! |
This comment has been minimized.
This comment has been minimized.
|
No problem guys |
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. |
When getting a Filelist on Chromium/Firefox works properly, but not in Electron (0.36.0) with same functions and modules version.
The error is:
104 Uncaught (in promise) TypeError: item.path.shift is not a function(…)
could be found at:
create-torrent/index.js
I understand that Filelist is not a proper array for shift(), but I belive that It would be fine that Webtorrent could parse files as good in Electron as in Chromium.