Forums / Setting Up Categories, Products, Attributes / downloads: redirect or streaming?

downloads: redirect or streaming?

Views: 975

Results 1 to 9 of 9
17 Nov 2011, 10:40 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

downloads: redirect or streaming?

ZC 1.3.9a

What's the difference between download by "redirect" and download by "streaming"? And will streaming help the problem we've been having with customers getting corrupt PDF files?

Many customers tell us they'll get part of a PDF file and then their browser crashes.

John

18 Nov 2011, 4:17 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: downloads: redirect or streaming?

Entering that same question in the search box of the Tutorials/FAQs section brings up this article:
https://www.zen-cart.com/tutorials/index.php?article=292

.
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.

18 Nov 2011, 1:09 PM
#3
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: downloads: redirect or streaming?

Thank you -- that answered my question.

John

28 Nov 2011, 7:38 PM
#4
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: downloads: redirect or streaming?

OK, I read the tutorial and it makes sense.

We've been having trouble with downloaded pdfs being very slow and becoming corrupted, so I tried setting the "download by redirect" to false. Now all I get is a 4KB file with the correct name, but obviously, no data in it.

Do I need to change any other settings to turn off the redirect?

I've tried this with streaming on and off, same problem.

29 Nov 2011, 12:56 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: downloads: redirect or streaming?

No, there's just the one switch to turn off the redirect. And with both redirect and streaming off, as per the tutorial, the files are served directly from the /download/ folder. So, ALL problems after that stage are related to something amuck on your server, not Zen Cart.

When did these problems suddenly start happening?
What patterns exist amongst those complaining?

.
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.

29 Nov 2011, 11:35 AM
#6
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: downloads: redirect or streaming?

I'm guessing the problem has been there from the beginning, but only now a problem because of increased traffic (and corresponding complaints from customers).

Not all downloads fail, but there doesn't seem to be any commonality, except that IE seems to have the most problems.

By the way -- regardless of how the Redirect switch is set, the link generated by the cart looks like this:

http://quinceandco.com/store/index.php?main_page=download&order=13620&id=10989

Is this correct?

29 Nov 2011, 1:41 PM
#7
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: downloads: redirect or streaming?

Here's another bit of oddness I notice around this: On the success page, the link to the download indicates that the link never expires (it says "Unlimited" in that field). But under the configuration > attribute settings, downloads are set to 7 days.

What does that discrepancy indicate?

29 Nov 2011, 7:02 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: downloads: redirect or streaming?

jgold723:

Here's another bit of oddness I notice around this: On the success page, the link to the download indicates that the link never expires (it says "Unlimited" in that field). But under the configuration > attribute settings, downloads are set to 7 days.

What does that discrepancy indicate?
Admin->Configuration->Attribute Settings -- these are the defaults that will be pre-filled when you add an attribute to a product. You can then override those on the actual attribute-settings screen when assigning filenames and attribute option names/values, etc.
So, if it's saying "unlimited", that suggests that you manually set the value for that attribute to be unlimited, by changing the default that was originally put there.

.
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.

29 Nov 2011, 7:07 PM
#9
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: downloads: redirect or streaming?

Ah -- thank you.