Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Download File Size Limitations


aphoniarecordings

Recommended Posts

Posted

Everything on my store is working properly, I just have this one caveat. As I am using a testing server and Sandbox with Paypal I am completing transactions as per the normal testing procedure. The problem I am having is that downloads for larger zip files, over 25 MB are not downloading completely. It isn't as if they are reaching a certain size and then stopping - it seems rather random. Is there some size limitation that I am not aware of?

 

I have heard people comment on not making zip files larger than 23 MB, but that just isn't practical with the products we are offering: entire album downloads with cover art, archived for download. In addition, it seems like a rather arbitrary and unrealistic limitation. Could it be my host that is limiting the download size?

 

Anyone have any ideas?

 

-Andrew

Web Administrator

aphoniarecordings.com

Posted

All downloads go through temporary files - I would investigate with your hosting company (second level support) 1st to see if you are over the limit.

 

If you are downloading at that file size, you are going to use up all your bandwidth unless you have a large pipe - my advice is to seriously look at your hosting - you may need a media server to download from - even if it's not necessarily streaming or on-demand multimedia per se.

 

Have you looked into the code for OSC and see if there is a temp file size limit - I swear I remember seeing that somewhere.

Nothing unreal exists

Posted

Oh one other thing - you check your browser to see if there is a limit there?

 

Also, look at your raw server logs and see if that helps out.

Nothing unreal exists

Posted

The bandwidth isn't the problem. I still have nearly 150GB left this month alone. I have looked into the code and I can't find anything about temp file size limit. Of course I am not the most sleuthy with deciphering code. I am kind of an idiot actually when it comes to php. I did see a contribution that looked promising, at least from an admin of downloads POV. Anyways, I am looking forward to this site going live here soon, I am already nearly a week past my deadline! Thanks for the advice.

 

Andrew Senna

Web Administrator

aphoniarecordings.com

Posted

make sure to contact hosting just in case - they hmay have a cap limit - I'll look at this a bit more when I get back to my testing machine

Nothing unreal exists

  • 2 weeks later...
Posted

I have the same problem (almost) - large files will not download, I end up with a 0 file size.

 

Here's how I've tested this:

 

I have the follwoing files in the download directory:

 

large.zip - 100 618 181 bytes

unreal.zip - 143 bytes

 

In product attributes I set teh filename to "thisfile.zip"

 

I the copy the unreal.zip -> thisfile.zip

the product purchase & download after checkout works OK.

 

However, when I copy large.zip -> thisfile.zip

the same purchase and download produces a 0 length file.

Another 43M file behaves exactly the same.

 

I don't have any download size limitations as I'm running my own server.

 

Has anyone seen this before?

Posted

Further investigation of the filesize issue has uncovered the following error message:

 

"PHP Fatal error: Allowed memory size of 8388608 bytes exhausted at <deleted>.../php-4.4.2/main/output.c:397 (tried to allocate 100612096 bytes) in <deleted>.../download.php on line 97, referer: http://www.myshop.com/checkout_success.php

 

This means the file size is limited by the amount of memory PHP is allowed to allocate. This is due to the use of the "readfile" function used in download.php.

The solution is to use download by redirect, but that need the apache directive "followsymlinks" enabled :'(

 

I'll post the sulotion (if I can find it!)

 

Erwin

Posted
Further investigation of the filesize issue has uncovered the following error message:

 

"PHP Fatal error: Allowed memory size of 8388608 bytes exhausted at <deleted>.../php-4.4.2/main/output.c:397 (tried to allocate 100612096 bytes) in <deleted>.../download.php on line 97, referer: http://www.myshop.com/checkout_success.php

 

This means the file size is limited by the amount of memory PHP is allowed to allocate. This is due to the use of the "readfile" function used in download.php.

The solution is to use download by redirect, but that need the apache directive "followsymlinks" enabled :'(

 

I'll post the sulotion (if I can find it!)

 

Erwin

 

I need to go back over my logs to see if I am getting the same error. That way we will no for sure that this is a common result between the two of us. I sure hope a solution presents itself sooner than later. My client is getting antsy.

Posted

I have solved my problem.

The solution is to enable "download by redirect" - of course this only works if you have a unix server.

And make sure the FollowSymLink option is enabled for your directories in the Apache config file.

 

I can now download a 100M file without any problems.

 

Hope this helps.

 

Erwin

Posted

Hey thanks!

 

Ok I am kind of a dummy is this something I change in the config file? Where can I find the Apache settings? Is it within store PHP files or is it something more host related?

 

Andrew

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...