Page 1 of 1
download file type changing
Posted: Fri Sep 23, 2005 3:37 pm
by J_Type
I have a download for a .tgz on my site but when it pops up it is downloading as a .tar file. Anyone know why this is happening?
Posted: Fri Sep 23, 2005 3:44 pm
by feyd
code? browser? someone farted?

I think we need to know some more info..
Posted: Fri Sep 23, 2005 3:47 pm
by J_Type
PHP, ie, *pfft* oops!
Posted: Fri Sep 23, 2005 4:29 pm
by feyd
I figured it involved PHP.. but that doesn't tell me anything more like what's involved at hand..
Posted: Fri Sep 23, 2005 4:50 pm
by J_Type
I dont know what additional information to provide.
Code: Select all
<a href="files/myFile.tgz">download</a>
This pops up a file download box...
Do you want to open or save this file?
Name : myFile.tar
Type : Tar archive
OPEN SAVE CANCEL
Why does it download as a tar, when the file is a .tgz? Any idea?
Posted: Fri Sep 23, 2005 6:17 pm
by feyd
this very likely has nothing to do with your page code but your browser and the "default" handling program associated with it.. it may automatically gunzip the file... if the server mistakenly marks the download as gzcompress encoding without compressing it again, it will be decompressed automatically by most browsers...