Home arrow Forum

Remository Forum

 


MakBek

 
Corrupted Downloads - 2006/01/04 16:02 Hi,

I've got a corrupted file when i try to download a file from my newest site with Remository 3.24.

http://www.aeromodel.it/index.php?option=com_remository&Itemid=26&func=fileinfo&id=5

I've checked the uploaded file dowloading it directly from ftp and it seems not corrupted.

When I repair the corrupted file with winrar utility I find a small change in the latest byte beetwen corrupted and repaired files.

Thank you vary much,
Makbek
  | | Sorry, you do not currently have permission to write here.
ruibueno

Karma: 0  
Re:Corrupted Downloads - 2006/01/04 23:33 you may be having the same problem I'm having:

http://www.remository.com/Forum/func,view/id,1787/catid,6/
  | | Sorry, you do not currently have permission to write here.
MakBek

 
Re:Corrupted Downloads (fixed) - 2006/01/05 21:58 Hi all,

I've fixed the problem, so in the file "/components/com_remository/com_remository_startdown.php" I've made this change:

Old code

Code:

  //Begin writing headers header("Cache-Control: max-age=60"«»); header("Cache-Control: private"«»); header("Content-Description: File Transfer"«»);



Replace with this new code

Code:

  //Begin MakBek Fix - Problem fixed: 1 byte more at //the start of the file (2006/01/05) while (@ob_end_clean()); //Begin writing headers //header("Cache-Control: max-age=60"«»); //header("Cache-Control: private"«»); header("Content-Description: File Transfer"«»); header("Pragma: public"«»); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"«»); header("Expires: 0"«»); //End MakBek Fix - Problem fixed: 1 byte more at //the start of the file (2006/01/05)



Try it ... and report problem please masbesc(at)tin.it

Thanks all
MakBek
  | | Sorry, you do not currently have permission to write here.
maddunr

Karma: 0  
Re:Corrupted Downloads (fixed) - 2007/10/24 19:14 Hello,

I know it's been a year since your post.. but I tried your solution and it didn't solve my problem.

- V
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:Corrupted Downloads (fixed) - 2007/10/29 22:13 There can be problems with corrupt downloads if the files are stored in the database AND the character set configuration is not completely consistent. That is, the character set used for transfers between the DB and PHP is not 100% compatible with the DB tables setup. Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
fungkur

Karma: 0  
Re:Corrupted Downloads (fixed) - 2008/06/07 10:30 MakBek wrote:
Hi all,

I've fixed the problem, so in the file "/components/com_remository/com_remository_startdown.php"


which file should i edit when im using remository 3.44.1? com_remository_startdown.php is not there anymore in this version.
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:Corrupted Downloads (fixed) - 2008/06/08 22:36 If you're using Mambo, then it is the Mambo database manager that is corrupting files on upload. Replace the database code with the replacement to be found here in Downloads - Mambo - Remository compatible. Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 6 guest online