Cactiusers.org


It is currently Thu May 17, 2012 8:10 am




Post new topic Reply to topic  [ 4 posts ] 
 Please change your distribution file naming convention. 
Author Message
New User

Joined: Wed Nov 30, 2005 4:15 pm
Posts: 3
Post Please change your distribution file naming convention.
Your file naming convention on the thold distribution is broken.

You distribute files named ".gzip" which are actually tar files within gzipped files.


The standard naming convention for this is ".tar.gz".

While programs in Windows (winzip,etc.) might be able to figure out what to do with these files, it's a hassle for us people in the Unix world.

Thanks.

Btw, I've just started using thold and I'm impressed by it, with or without the filename problem. ;)


Wed Nov 30, 2005 5:01 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: Please change your distribution file naming convention.
netik wrote:
Your file naming convention on the thold distribution is broken.

You distribute files named ".gzip" which are actually tar files within gzipped files.

The standard naming convention for this is ".tar.gz".

While programs in Windows (winzip,etc.) might be able to figure out what to do with these files, it's a hassle for us people in the Unix world.

Thanks.

Btw, I've just started using thold and I'm impressed by it, with or without the filename problem. ;)


Actually, this is slightly more complicated than it looks. The link to the file itself is .gzip, but the file isn't a real file. Mod rewrite redirects the request to a custom script I have written that will zip, tar, or tar.gz the files on the fly (using only PHP I might add). The script actually sends the filename header as thold.tar.gz for the filename, so your browser may be ignoring that if it is downloading as .gzip. In all actuality, any of these filenames will work.
Code:
thold.zip
thold.tar
thold.gzip
thold.tar.gz
yet they don't exist as files on the server.

I will ofcourse change the links to the files to use .tar.gz instead, but for most users the file would have downloaded as thold.tar.gz as the http header told it to.

Thanks for making me aware of issues surrounding it!


Wed Nov 30, 2005 6:08 pm
New User

Joined: Wed Nov 30, 2005 4:15 pm
Posts: 3
Post Re: Please change your distribution file naming convention.
jimmy wrote:
Actually, this is slightly more complicated than it looks. The link to the file itself is .gzip, but the file isn't a real file. Mod rewrite redirects the request to a custom script I have written that will zip, tar, or tar.gz the files on the fly (using only PHP I might add). The script actually sends the filename header as thold.tar.gz for the filename, so your browser may be ignoring that if it is downloading as .gzip. In all actuality, any of these filenames will work


Ahh, I see why this broke now.

I tend to use wget to get files in Unix, so I'll drag the link off the web page and drop it onto whatever server I happen to be logged into in another terminal window at the time (I'm using OS X and most of our servers are Linux.) Maybe wget didn't respect your http header. -shrug-


Wed Nov 30, 2005 6:50 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
I could definitely see how wget could have issues with it. I have now updated all the links on the site to point to .tar.gz, and made the default links for all downloads to be .tar.gz (before it was zip for some, and not others).

Thanks :)


Wed Nov 30, 2005 10:12 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: