Downloads pro stream file instead of download.
| Author |
Message |
Yoshi


Joined: Dec 30, 2004 Posts: 122
|
Post subject: Downloads pro stream file instead of download. Posted: Tue Sep 13, 2005 12:22 am |
|
Is there anyway to make the links to the downloads pro area stream instead of downloading? Like how there was on the old downloads module where there was a link to stream the file. Cuz I have .wma files that I want to stream instead of being downloaded.
Thanks
Yoshi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/Dragonfly 9.5 all updated apache and mysql |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Tue Sep 13, 2005 1:03 am |
|
you probably have anti-leech turned on
The anti-leech defaults to send any unknown file as application/octetstream
We need to add WMA with a specified mime and how it should be handled to get it to stream
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |
Yoshi


Joined: Dec 30, 2004 Posts: 122
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Tue Sep 13, 2005 3:55 am |
|
is .wmv already presetted? if not you know what file I can edit so I can add the settings?
Thanks.
Yoshi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/Dragonfly 9.5 all updated apache and mysql |
|
| Back to top |
|
 |
musox


Joined: Apr 20, 2004 Posts: 325
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Tue Sep 13, 2005 12:32 pm |
|
OMG! I've been looking for this answer for such a long time. This solved my issue. Now, how can I add .wmv so I can still enable anti-leech?
- MusOX
_________________ ../musox.com
Hosted by: Site5.com
musox's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 1.3.39 / 4.1.22 / 4.4.7 / 9.2.1 |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Tue Sep 13, 2005 1:00 pm |
|
I will only tell you how if you exactly explain what you want because real streaming is something different then downloading and that can't be done unless you have a stream server mms:.
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |
musox


Joined: Apr 20, 2004 Posts: 325
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Tue Sep 13, 2005 1:31 pm |
|
You are correct... I don't need "streaming" as I don't have a stream server. My goal is for novice users to download videos (in this case .wmv) and the appropriate player open and begin playing the movie. In IE only (FF works correctly), if you download a LOCAL movie it appears to download correctly, however, I (on multiple machines) get an error:
Quote:
Widows Media Player cannot play the file. If the file is on another computer, verify that you are conencted to the network. If you typed a path... If the problem persists, the server might not be available.
The same movie on the same server works fine when I use the full URL path thus making it a "REMOTE".
My Downloads Pro settings are:
Enable security code = No for both
Anti-Leech = Yes for local, No for Remote
Anonymous download = Yes for both
Outside Votes = Yes
You can see this at www.musox.com/Downloads/get=36.html
_________________ ../musox.com
Hosted by: Site5.com
musox's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 1.3.39 / 4.1.22 / 4.4.7 / 9.2.1 |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Tue Sep 13, 2005 10:20 pm |
|
Extract the attached file to /includes/classes/ and tell us if it fixed your problem
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |
musox


Joined: Apr 20, 2004 Posts: 325
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Wed Sep 14, 2005 1:06 am |
|
I see the added line elseif ($ext == 'wmv') { $mimetype = 'video/x-ms-wmv'; }, but it didn't work. 
- MusOX
_________________ ../musox.com
Hosted by: Site5.com
musox's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 1.3.39 / 4.1.22 / 4.4.7 / 9.2.1 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8723 Location: Netizen
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Wed Sep 14, 2005 1:25 am |
|
did you add wmv to your extensions in dlpro admin?
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
Yoshi


Joined: Dec 30, 2004 Posts: 122
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Wed Sep 14, 2005 9:11 am |
|
whats the anti leeching for remote files do? cuz I enabled yes to both, and i was figuring it was for people who try to grab it from a link or am I wrong?
Yoshi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/Dragonfly 9.5 all updated apache and mysql |
|
| Back to top |
|
 |
Yoshi


Joined: Dec 30, 2004 Posts: 122
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Wed Sep 14, 2005 9:20 am |
|
Also there a way when you click the wmv to stream it won't goto a blank page but rather stay where it is?
Yoshi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/Dragonfly 9.5 all updated apache and mysql |
|
| Back to top |
|
 |
musox


Joined: Apr 20, 2004 Posts: 325
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Wed Sep 14, 2005 12:02 pm |
|
Phoenix: in Downloads Administration => Configuration => Uploading I have the following in "Allowed file extensions" for files:
Quote:
ace doc gtar gz pdf rar tar zip mp3 wmv avi
- MusOX
_________________ ../musox.com
Hosted by: Site5.com
musox's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 1.3.39 / 4.1.22 / 4.4.7 / 9.2.1 |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Wed Sep 14, 2005 3:07 pm |
|
Yoshi wrote:
whats the anti leeching for remote files do? cuz I enabled yes to both, and i was figuring it was for people who try to grab it from a link or am I wrong?
Remote and local anti-leech hides all urls and the PHP itself sends the data.
When you have anti-leech turned on for remote files, your server makes a connection with the file and downloads the file to the server and then sends it to the visitor. This generates additional bandwidth from the remote server to your server and this option is mainly added if you host your files somewhere else and don't want people to know where.
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |
Yoshi


Joined: Dec 30, 2004 Posts: 122
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Wed Sep 14, 2005 4:19 pm |
|
ahh I see.. so would it matter if I made lets say link the directory within the cpg host like a sub directory? Like I don't have it uploaded but rather linked, and then put remote anti leeching on will that still prevent users from knowing where it is?
Yoshi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/Dragonfly 9.5 all updated apache and mysql |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: Downloads pro stream file instead of download. Posted: Wed Sep 14, 2005 5:55 pm |
|
For example you have a file on otherhost.com/downloads/afile.zip
The module detects it as remote file since you have http:// otherhost.com/ in there.
If you have anti-leech turned on for remote files the system downloads the file from otherhost.com and sends it to you WITHOUT saying where it is stored on otherhost.com
So mainly the system only tells on which host but not where on that host.
A graphical view of anti-leech:
PHP -> download file -> PHP send file
A graphical view of NO anti-leech:
PHP -> redirect to: otherhost.com/downloads/afile.zip
Visitor see in download box WITH anti-leech:
mysite.com/Downloads/get=123.html
Visitor see in download box WITHOUT anti-leech:
otherhost.com/downloads/afile.zip
So when you use anti-leech the url to file is fake and can't be accessed by anyone unless the permissions are correct 
[edit]
For an example (if you're not registered on that site) try the following URL
siege-mods.com/Downloa...or=99.html
As a second example try to get the official url of
dragonflycms.org/Downl...r=643.html
You will notice you can't download the first since you're not allowed to and on the second you can't the detect the official url (downloads/something_here/ nix.9010-9011.patch.gz)
The huge benefit is that nobody can access a download from another website that tries to leech your files 
[/edit]
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |