Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

to large download files?


Tehshort

Recommended Posts

How large files does oscommerce support ?? cause ive tried adding files wich are 11 mb in size and they dont seem to work when i have download added.. it just gives me a error site.. and even with 6 mb files its the same.. how do i get it to accept bigger files please????

Link to comment
Share on other sites

You could break down large files to smaller chunks during download. To get around connection loss, you could create an extra table in the database and for each download you can store a chunk index or offset/position of the last successful output to the customer. Then you can resume the donwload if necessary or restart the download.

 

Finally you decrement the download counter once the download is complete.

Link to comment
Share on other sites

You could break down large files to smaller chunks during download. To get around connection loss, you could create an extra table in the database and for each download you can store a chunk index or offset/position of the last successful output to the customer. Then you can resume the donwload if necessary or restart the download.

 

Finally you decrement the download counter once the download is complete.

 

My question is now, why does oscommerce not support larger files???

you do realize that the 11 mb file i have to break down to 5-6 pieces in order for it to download properly... (and ive tested this on 2 different webhosts)

Link to comment
Share on other sites

My question is now, why does oscommerce not support larger files???

you do realize that the 11 mb file i have to break down to 5-6 pieces in order for it to download properly... (and ive tested this on 2 different webhosts)

 

 

This is probably not an OSC limit, but your php installation. In the php.ini file, there are preset defaults for upload filesize limit, execution time, maximum post size, etc.

 

Ask your webhost to increase these and see if it helps.

 

cooch

Link to comment
Share on other sites

My question is now, why does oscommerce not support larger files???

you do realize that the 11 mb file i have to break down to 5-6 pieces in order for it to download properly... (and ive tested this on 2 different webhosts)

There are many things a merchant finds good for his store. osc comes with so many features so if something does not exist you can always create it.

 

Now why do you need to bread down to 5-6 pieces? What I mentioned happens on the fly.

 

This is probably not an OSC limit, but your php installation. In the php.ini file, there are preset defaults for upload filesize limit, execution time, maximum post size, etc.

 

Ask your webhost to increase these and see if it helps.

Increase it to what? How about a store that needs downloads support of few GB per file.

Link to comment
Share on other sites

Increase it to what? How about a store that needs downloads support of few GB per file.

 

 

Well, you would have to increase the allowable "post size" and "upload filesize" to a number larger than the files you are uploading. You would also have to increase the execution time to larger than however long it takes to upload your files.

 

My advice is the same: contact your webhost and tell them the issues you are having. They probably have these settings at their default level, which typically limit uploads and posts to about 2MB and timeouts to around 30 secs. They do this to prevent runaway scripts that could take over their servers, so they will have to agree to set some higher limits.

 

Hope that helps.

Link to comment
Share on other sites

There are many things a merchant finds good for his store. osc comes with so many features so if something does not exist you can always create it.

 

 

A way around this might be to upload a small file (it can be anything) with the same name as the large file; the cart should handle that fine. Then connect to your site by ftp, and replace the small file with the large file having the same name (I think these go in the "downloads" directory).

 

See if that works.

Link to comment
Share on other sites

My advice is the same: contact your webhost and tell them the issues you are having. They probably have these settings at their default level, which typically limit uploads and posts to about 2MB and timeouts to around 30 secs. They do this to prevent runaway scripts that could take over their servers, so they will have to agree to set some higher limits.

 

Hope that helps.

There is no problem with the default levels you can still download anything you want regardless of your host's restrictions.

Link to comment
Share on other sites

There is no problem with the default levels you can still download anything you want regardless of your host's restrictions.

 

 

Thought the problem was in uploading the large files, not in downloading. Sorry if I mis-understood.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...