Forums / General Questions / Cannot disable streaming download. Is there any way to do this?

Cannot disable streaming download. Is there any way to do this?

Views: 653

Results 1 to 4 of 4
22 Aug 2012, 12:30 PM
#1
ttenzan avatar

ttenzan

New Zenner

Join Date:
Aug 2012
Posts:
3
Plugin Contributions:
0

Cannot disable streaming download. Is there any way to do this?

Hello,

I sell downloadable WMV files in my Zencart and I configured my Zencart as below:

Enable Downloads -> true
Download by Redirect -> true
Download by streaming -> false

But when I click the "download" button from my PC, it launchs Windows Media Player automatically and starts to play the WMV files. So I have to RIGHT-CLICK mouse to save the files.

However, what I want to do is when users click the "download" button, instead of playing the file, it will pup-up a file saving dialog box to let users save the file to their PC. Can any one tell me how I can do this? Thank you very much!!

22 Aug 2012, 3:07 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Cannot disable streaming download. Is there any way to do this?

Far as I know, that's controlled by your visitors' browsers and whatever software that's installed on their computers, not you. The usual way of getting around that is to have your files compressed into .zip files.

23 Aug 2012, 5:50 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Cannot disable streaming download. Is there any way to do this?

The use of the term "streaming" here is incorrect.

As stevesh said, your problem is that customers' browsers are set up by default to open those files directly for immediate playback, overriding what Zen Cart normally tells them to do.

While the following link is in the context of handling PDFs having the same problem, the solution applies equally:
http://www.zen-cart.com/showthread.php?193696-Open-Downloads-in-new-window&p=1111510#post1111510

... and is built-in to v150, so upgrading is worth considering ;)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Aug 2012, 11:07 AM
#4
ttenzan avatar

ttenzan

New Zenner

Join Date:
Aug 2012
Posts:
3
Plugin Contributions:
0

Re: Cannot disable streaming download. Is there any way to do this?

Hi Stevesh and DrByte,

Thank you very much for your advices. I modified /pub/.htaccess and it works great now:clap:. Thanks again!!