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

MIME type meta-data

From: Matthew Hambley <matthew_at_aether.demon.co.uk>
Date: 2003-03-04 21:48:54 CET

I have been conversing with Alex Waugh concerning the use of meta-data to
describe a property of files under Risc OS not present in Unix or Windows.
This lead to me having a play with Subversions meta-data handling
capabilities.

I was particularly taken with the ability of a Subversion repository to
make use of the "mime-type" property when being interrogated by a standard
web browser. This seems like a really funky feature so I was disappointed
that files default to either un-taged or 'application/octet-stream'.

I've had a look at the source and noticed that there is a function
svn_io_detect_mimetype which decides this value. Is the plan to use this
at some point to map some suitable identifier (file extensions for
instance) to a MIME type?

The immediately apparent way to do it would be to make use of the
mime.types file in *nix land. Unfortunately this is not necessarily
applicable to anything other than *nix and there is no MIME mapping
facility in the APR.

If this is what people are after than I am willing to float the idea (and
do the work) on the APR mailing list. If, on the other hand, people had
something else in mind then I wont bother. Clearly it was not something
considered useful to Apache otherwise it would be in there already.

-- 
(\/)atthew )-(ambley ---------------\ If something's worth doing it's worth
E-mail : matthew@aether.demon.co.uk  \ doing badly until you can learn to
Public key : C991137B                 \ do it well.
Web : http://www.aether.demon.co.uk/   \-----------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 4 21:50:58 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.