Re: File types

Henrique Araujo <[email protected]> Fri, 20 Jun 2003 12:26:32 -0400
Newsgroups gmane.comp.djb.publicfile
Message-ID <[email protected]>
system administration account escreveu:

>On 2003-06-20 10:11:32 -0500, David Phillips wrote:
>  
>
>>Henrique Araujo writes:
>>    
>>
>>>How can I control file types of files served by httpd? For instance, I
>>>[...]
>>>
>>Name it "FILE.gz" and it will have the correct Content-Type.
>>    
>>
>
>He explicitly said he didn't want to do that.
>So we have to tell him the alternatives, which are:
>(1) rename FILE.GZ to FILE.GZ.application=x-gzip
>
Unless I am missing something here I don't see the advantage of naming a 
file that way.

>(2) patch the source code to publicfile to treat .GZ like .gz
>
Applied and working. Thanks.

>
>A variation on (2) would be to make publicfile case-insensitive
>throughout. Many filesystems in common use already have that
>property. And related experience in other areas (such as email
>address local-parts) has shown case-sensitivity to be a mixed
>blessing at best. Of course by the same token Mr. Araujo shouldn't
>insist on preserving the case of downloaded file names in the first
>place.
>  
>
The practical thing is that I have to periodically download and publish 
some files for antivirus updating. For that I control the timestamp to 
not download the same file several times, so I have to keep the file 
name. Another alternative could be to download them to another directory 
and copy them renamed to the proper /public/file/.

Also, I intend to set up some virtual domains under the control of 
certain account(s), which will be able to upload files via ssh. In this 
case, I'll ask people to name files accordingly.

>
>  
>
Thanks all of you for the suggestions.


Henrique Araujo
SysAdmin
CSSG