Downloads pro stream file instead of download.
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexDownloads Pro
Author Message
Yoshi
Nice poster


Joined: Dec 30, 2004
Posts: 122

PostPost subject: Downloads pro stream file instead of download.
Posted: Tue Sep 13, 2005 12:22 am
Reply with quote

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 Big grin


Yoshi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
XP/Dragonfly 9.5 all updated apache and mysql
Back to top
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Tue Sep 13, 2005 1:03 am
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
Yoshi
Nice poster


Joined: Dec 30, 2004
Posts: 122

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Tue Sep 13, 2005 3:55 am
Reply with quote

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
View user's profile Visit poster's website
musox
Platinum Supporter


Joined: Apr 20, 2004
Posts: 325

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Tue Sep 13, 2005 12:32 pm
Reply with quote

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
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Tue Sep 13, 2005 1:00 pm
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
musox
Platinum Supporter


Joined: Apr 20, 2004
Posts: 325

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Tue Sep 13, 2005 1:31 pm
Reply with quote

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
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Tue Sep 13, 2005 10:20 pm
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
musox
Platinum Supporter


Joined: Apr 20, 2004
Posts: 325

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Wed Sep 14, 2005 1:06 am
Reply with quote

I see the added line elseif ($ext == 'wmv') { $mimetype = 'video/x-ms-wmv'; }, but it didn't work. Sad

- 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
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8723
Location: Netizen

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Wed Sep 14, 2005 1:25 am
Reply with quote

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
View user's profile Visit poster's website
Yoshi
Nice poster


Joined: Dec 30, 2004
Posts: 122

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Wed Sep 14, 2005 9:11 am
Reply with quote

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
View user's profile Visit poster's website
Yoshi
Nice poster


Joined: Dec 30, 2004
Posts: 122

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Wed Sep 14, 2005 9:20 am
Reply with quote

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
View user's profile Visit poster's website
musox
Platinum Supporter


Joined: Apr 20, 2004
Posts: 325

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Wed Sep 14, 2005 12:02 pm
Reply with quote

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
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Wed Sep 14, 2005 3:07 pm
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
Yoshi
Nice poster


Joined: Dec 30, 2004
Posts: 122

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Wed Sep 14, 2005 4:19 pm
Reply with quote

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
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Downloads pro stream file instead of download.
Posted: Wed Sep 14, 2005 5:55 pm
Reply with quote

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 Wink

[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 Very Happy
[/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
View user's profile Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexDownloads Pro All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.9774 seconds with 19 DB Queries in 0.0857 seconds
Memory Usage: 3.03 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy