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?
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
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
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.
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.
nope that didnt fix it, i just cant nderstand why its happening
What permissions do you have on the file ? I must have 777 on all files in the downloads for them to be correct
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
The folder tp-downloads need to have 777 and the same for the files inside the tp-downloads
no, tried that too m8, thanks for the help tho
Did you reupload the file and cleared your cache and temp internet files after you changed the permissions ?
no, will try that now thankx
no sorry mate didnt help, i just emailed my hosting company to see if they can help
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
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.
http://www.clan-ut3.com/phpinfo.php
thx
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.
how is it then that i can download it fine from the direct link and it will work?
Thx
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
but dont that only apply to uploads, if its uploaded correctly, surely it shouldnt matter the size for downloading, or no?