cloud-torrent icon indicating copy to clipboard operation
cloud-torrent copied to clipboard

Download Error if # is in file name

Open MrSwiss opened this issue 9 years ago • 2 comments

I have finished download files. 1

When I download using provied url [https://******/download/#_/file.ext] I get this error. 2

But when I change # to %23 [https://******/download/%23_/file.ext] I can download. 3

Sorry for my bad English EDIT: delete unrelated information

MrSwiss avatar Feb 10 '16 02:02 MrSwiss

Ah yes, this is a bug, the URLs should be encoded first. Thanks for the report. Will try to get to it soon.

On Wed, Feb 10, 2016 at 1:43 PM Swiss [email protected] wrote:

I have finished download files. [image: capture] https://cloud.githubusercontent.com/assets/3234687/12937297/e7110710-cfd9-11e5-8679-d5c42287bf7f.PNG

When I download using provied url [https://******/download/#_MUKD345/MUKD345.avi] I get this error. [image: capture] https://cloud.githubusercontent.com/assets/3234687/12937289/d2941246-cfd9-11e5-8725-6731e180f6ca.PNG

But when I change # to %23 [https://******/download/%23_MUKD345/MUKD345.avi] I can download. [image: capture] https://cloud.githubusercontent.com/assets/3234687/12937371/934d635c-cfda-11e5-8543-23ee2df5ed25.PNG

Sorry for my bad English

— Reply to this email directly or view it on GitHub https://github.com/jpillora/cloud-torrent/issues/32.

jpillora avatar Feb 10 '16 02:02 jpillora

Nice way to test this is to use the following commands:

mkdir -p '/tmp/torrents/#'
cd '/tmp/torrents/#'
wget http://releases.ubuntu.com/18.04/ubuntu-18.04.1-live-server-amd64.iso.torrent
cd ../
python2 -m SimpleHTTPServer

Then try adding the torrent url http://localhost:8000/#/ubuntu-18.04.1-live-server-amd64.iso.torrent

Note: You need to run cloud-torrent locally. If you are running inside of docker, you wont be able to access localhost.

steakunderscore avatar Sep 06 '18 14:09 steakunderscore