[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: MIME type meta-data

From: William Uther <willu.mailingLists_at_cse.unsw.edu.au>
Date: 2003-03-05 10:08:33 CET

On Wednesday, March 5, 2003, at 06:20 PM, Matthew Hambley wrote:

> The question of where this checking should occur, client or server, was
> raised. Although strong opinion was voiced against having it happen on
> the client I would like to argue for it. I would suggest that the
> client
> is in a much better position to know what type a particular file is
> than
> the server. Remember this processing is only going to happen when a
> file
> is added or imported. In which case the file was created on the
> client,
> therefore it seems sensible that the client should know what it is.

+1

Some MacOS X apps don't bother with filename extensions (which I like).
  An apr function that used the local OS method of getting the mime-type
would work with the locally created files. A server based method would
have no way to detect the mime-types of these files.

As an interesting aside, MacOS X has the concept of a file type
separate from the extension (inherited from classic MacOS). If apr had
a generic 'set mime-type' function that set the file type based on the
mime type (if such a facility were available on the local OS), then
subversion could set the file-type correctly on checkout/update too.

Anyway, I'll stop throwing out ideas without corresponding
implementation time...

Later,

Will :-}

--
Dr William Uther                            National ICT Australia
Phone: +61 2 9385 6926             School of Computer Science and 
Engineering
Email: willu@cse.unsw.edu.au             University of New South Wales
Jabber: willu@jabber.cse.unsw.edu.au          Sydney, Australia
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 5 10:09:26 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.