Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Downloads corrupted and don't work after purchase


cyberwisdom

Recommended Posts

Posted

I sell products on my website that once purchase has the ability to download.

 

It used to work before I made some changes but now I have an error.

 

After the customer makes a purchase and checks out, the download link comes up but when they download the file it is corrupted. It is 544 bytes instead of 800-1000kb.

 

Does anyone know what may be the problem? I've searched the forums and can't find anything yet.

Posted

If your server is on a Linux box try toggling your Oscommerce admin setting for "downloads" ->downloads by redirect->true.

 

Tom

Posted

Thanks OceanRanch.

 

I already had that enabled.

 

I found out the problem was that although I had the downloads/ folder chmod 777, I needed to also have pub/ folder set to 777.

 

Aparantely, it will create the file in the pub/ folder temporarily until it's downloaded. Since it didn't have read-write permission, it wasn't able to write to the pub/ folder. That's why I would get a file of 544 bytes or so.

 

Took a few days to figure it out... <_<

Archived

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

×
×
  • Create New...