Forums / Setting Up Categories, Products, Attributes / Anything over 10MB not downloading

Anything over 10MB not downloading

Locked

Views: 4,875

Results 21 to 30 of 30
This thread is locked. New replies are disabled.
29 Aug 2006, 3:44 PM
#21
cgrxman avatar

cgrxman

New Zenner

Join Date:
Aug 2006
Posts:
7
Plugin Contributions:
0

Anything over 10MB not downloading

A little more info...

Download by redirect = false

When Download by Streaming = true, it gets to only 4.5mb and says that it's complete.

29 Aug 2006, 3:59 PM
#22
drbyte avatar

drbyte

Sensei

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

Re: Anything over 10MB not downloading

download by streaming reads the file from your server, and sends it in 2K chunks to the browser.
If it's ending partway through, it would suggest that your webserver is halting it.
... esp since as you say, a direct FTP download works fine.

.
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 Aug 2006, 4:03 PM
#23
cgrxman avatar

cgrxman

New Zenner

Join Date:
Aug 2006
Posts:
7
Plugin Contributions:
0

Re: Anything over 10MB not downloading

Ok, thanks. So when it's disabled, what could the problem be? It is getting all the way to 40+mb and stopping. Smaller files come through fine.

29 Aug 2006, 4:05 PM
#24
drbyte avatar

drbyte

Sensei

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

Re: Anything over 10MB not downloading

cgrxman:

Ok, thanks. So when it's disabled, what could the problem be? It is getting all the way to 40+mb and stopping. Smaller files come through fine.
Same thing. A limit set by your webserver software ... IIS or apache

.
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 Aug 2006, 4:07 PM
#25
drbyte avatar

drbyte

Sensei

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

Re: Anything over 10MB not downloading

There are several ways a file can be downloaded:

  1. direct URL ... which essentially ends up being like an FTP transfer
  2. redirect URL ... same as above, but via a SymLink ... only supported on Linux/Unix
  3. streaming full file ... where webserver reads file from filesystem into RAM and sends the whole thing to the browser via the webserver engine ... requires lotsa RAM
  4. streaming in chunks ... where webserver reads file from filesystem in 2K chunks and sends those to the browser via the webserver engine (this approach simply prevents the webserver from having to cache several hundred MB of the file in RAM before sending to browser)

In Zen Cart, these translate roughly to:

  1. you paste a URL
  2. Redirect on, streaming off
  3. Redirect off, streaming off
  4. Redirect off, streaming on

.
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 Aug 2006, 4:16 PM
#26
cgrxman avatar

cgrxman

New Zenner

Join Date:
Aug 2006
Posts:
7
Plugin Contributions:
0

Re: Anything over 10MB not downloading

Thank you for your time. Let me see if I got this right...

There is some sort of transfer limit that is set on my server that would cause file downloads to behave differently if I type {server}/cart/downloads/{file_name} in my browser and select "Save to disk" vs. clicking the download button on my invoice page and selecting "Save to disk".

What limit do I ask my host tech support to check/increase? Please pardon my lack of knowledge in this whole file transfer thing.

29 Aug 2006, 4:17 PM
#27
cgrxman avatar

cgrxman

New Zenner

Join Date:
Aug 2006
Posts:
7
Plugin Contributions:
0

Re: Anything over 10MB not downloading

that should be {server}/cart/download/{file_name} ,sorry.

29 Aug 2006, 4:31 PM
#28
cgrxman avatar

cgrxman

New Zenner

Join Date:
Aug 2006
Posts:
7
Plugin Contributions:
0

Re: Anything over 10MB not downloading

Ok, it's much clearer now. Is there a way in ZenCart to force direct URL via the download button on the invoice page? Do I paste the full URL in the attributes settings? Otherwise I have to figure out where the limit is in example 4 above.

29 Aug 2006, 4:39 PM
#29
drbyte avatar

drbyte

Sensei

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

Re: Anything over 10MB not downloading

Zen Cart does not supply direct URL's, for security reasons. Do you really want your customers to be able to share download URL's with their buddies?

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

10 Nov 2007, 4:37 PM
#30
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: Anything over 10MB not downloading

I had a simimlar prblem crop up this morning. nothing over 6 MB would download for me.

So, I called my host....

The download funtionality goes through the PHP processor to send the file since it does not give you a direct link to the file. He figured that out when I read the link URL to him.

My host increased the PHP maximum execution time and I now hoave no problems downloading my 48 MB file (the largest one in my store currently).

This is something that should perhaps be put into the knowledge base!!!!!

Please!!