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

Re: mime type for docx in repos-web view

From: Ryan Schmidt <subversion-2010a_at_ryandesign.com>
Date: Thu, 28 Jan 2010 02:41:05 -0600

On Jan 27, 2010, at 23:54, Ramachandran, Vishwanath(IE10) wrote:

> Mimetype for docx in repos-web view is not correct (IE8) and needs to be updated. Also, Subversion repos-web view: Opening RTF files does not work in Firefox (due to incorrect mimetype setting) so I used
> pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
> xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
> rtf text/rtf
> docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
> it works fine in fire-fox and IE6, but not tested in IE8. As we have many users we cannot expect them to add mime-types every time in their client. Is there any possibility for the server and in particular repos-web to handle this for any extension (mime-types).
> I guess, it is not possible, can we make possible by some scripts which invokes the pre-commit hook?

Users are expected to set the proper svn:mime-type on files they commit.

Users can set up autoprops to automate this.

You can install a pre-commit hook that blocks commits with incorrect or missing mime types.

If that's too much work for your users, you can install a post-commit hook that sets the correct properties and does a second commit.
Received on 2010-01-28 09:41:47 CET

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