psychowood / ng-torrent-ui

Angular + (flat) Boostrap (μ)Torrent Web UI
GNU General Public License v3.0
138 stars 25 forks source link

Unable to drag and drop torrent #34

Closed Rouzax closed 8 years ago

Rouzax commented 8 years ago

When I drag and drop a torrent file it tells me it is not a .torrent image Torrent name VMware.Workstation.Pro.v12.1.1.X64.Incl.Keygen-AMPED.torrent


Version: ng-torrent-ui Server: μTorrent build 42020 User-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

psychowood commented 8 years ago

Do you get a red overlay when dragging the file over the input box (before dropping them)? Can you try on the (updated) demo and see the printed error?

Rouzax commented 8 years ago

Yes it shows a red overlay and this after image

psychowood commented 8 years ago

Sorry, I can't seem to replicate it, I tested on the very same browser (and the latest one, too)

User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

even if on Win10 (I don't have Win8.1 at hand right now, but I tested Chrome in Win8 compatibility mode too) it does work correctly.

Stupid questions: are you sure that the torrent is actually '.torrent' and not '.torrent ' ? Also every other torrent is giving the same error?

psychowood commented 8 years ago

Would you mind testing with this fiddle?

Rouzax commented 8 years ago

Running Chrome Version 50.0.2661.94 m (64-bit) on Windows 8.1, same on a different machine running Windows 10. Also with other torrents and the extension is .torrent

EDIT: Sure, how? :smile:

Rouzax commented 8 years ago

If I press the test button it gives

Thu May 12 2016 17:01:59 GMT+0200 (W. Europe Daylight Time) 'VMware.Workstation.Pro.v12.1.1.X64.Incl.Keygen-AMPED.torrent' ignored: false
psychowood commented 8 years ago

It seems that your system (and probably not just yours) reports the wrong mime-type for .torrents when dropping a file. I removed the check, please try the demo again.

Rouzax commented 8 years ago

The overlay now turns green and is selected image

psychowood commented 8 years ago

Good to know. Fix will be released with the next version. :)

Rouzax commented 8 years ago

:+1: Thanks