TinyPortal

Development => Support => Topic started by: biggsy on September 06, 2007, 04:20:14 PM

Title: Download Manager problem
Post by: biggsy on September 06, 2007, 04:20:14 PM
Hi all!

I have been using download manager for quite some time now with jpg's but i came to upload my first .zip file to it, i uploaded the file via ftp and assigned it ok.

But when i download it from the site by clicking the download button, it downloads in a second and when i open it it says the archive is in an unknown format or damaged! but if i use the direct link to the site i can download it fine.

I have tested the file and its fine, can anyone help shed some light on this please?
Title: Re: Download Manager problem
Post by: IchBin on September 06, 2007, 04:28:19 PM
Link please? SMF version? TP version? Does it happen with all compressed files? Please provide us with as much information as possible so we can help you faster.

http://www.tinyportal.net/index.php?topic=581.0
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 04:58:47 PM
Its happening with all compressed files and seems to be happening with exe's i would say its happenoing with anything but an image file.

www.clan-ut3.com
Direct link to download (internal) http://www.clan-ut3.com/index.php?action=tpmod;dl=get26

Link to file (external)
http://www.clan-ut3.com/tp-downloads/ut3-screensaver.zip

SMF version 1.1.3

Tp 0.9.8

Many Thanks
Title: Re: Download Manager problem
Post by: Nokonium on September 06, 2007, 05:52:23 PM
Do you have things in the titles that are not letters or numbers? Punctuation characters can cause all sorts of problems, particularly apostrophies, they get read as part of the php code.
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 05:59:10 PM
doubt its that coz the file actually starts to download, but i will try another test with a short basic filename entering no wierd charachters.
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 06:09:16 PM
nope that didnt fix it, i just cant nderstand why its happening
Title: Re: Download Manager problem
Post by: G6Cad on September 06, 2007, 06:21:14 PM
What permissions do you have on the file ? I must have 777 on all files in the downloads for them to be correct
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 06:23:56 PM
thats not it, i chmodded it from 644 to 777 and still no go, im trying reinstalling my template coz i made a few modifications to it to see if that works
Title: Re: Download Manager problem
Post by: G6Cad on September 06, 2007, 06:25:36 PM
The folder tp-downloads need to have 777 and the same for the files inside the tp-downloads
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 06:27:26 PM
no, tried that too m8, thanks for the help tho
Title: Re: Download Manager problem
Post by: G6Cad on September 06, 2007, 06:30:08 PM
Did you reupload the file and cleared your cache and temp internet files after you changed the permissions ?
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 06:30:54 PM
no, will try that now thankx
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 06:40:22 PM
no sorry mate didnt help, i just emailed my hosting company to see if they can help
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 07:28:22 PM
If i upload a zip thats small enough thru the uploads function, it works
If i upload a zip small enough via ftp it works when i assign it

But it will not work with a 4mb zip, even though it works with a direct link
Title: Re: Download Manager problem
Post by: IchBin on September 06, 2007, 08:46:14 PM
Can you post a link to a php info file?


<?php

phpinfo
();

?>


Add that to a file and name it phpinfo.php and give me a link to it on your site so I can see your PHP settings.
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 09:12:50 PM
http://www.clan-ut3.com/phpinfo.php

thx
Title: Re: Download Manager problem
Post by: IchBin on September 06, 2007, 09:35:23 PM
See if your host allows you to change the upload_max_filesize. Yours is set to 2 MB. Anything that goes above that will either error out or be corrupted.
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 09:37:13 PM
how is it then that i can download it fine from the direct link and it will work?

Thx
Title: Re: Download Manager problem
Post by: G6Cad on September 06, 2007, 09:48:13 PM
Because a direct download link t the file doesent have to pass the php script the server is running when you use a sql software that are written through php
Title: Re: Download Manager problem
Post by: biggsy on September 06, 2007, 09:49:17 PM
but dont that only apply to uploads, if its uploaded correctly, surely it shouldnt matter the size for downloading, or no?