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

Re: Bad MIMETYPE configuration for .htm files accessed via SVN HTTP

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Wed, 18 Nov 2009 18:59:33 -0600

On Nov 18, 2009, at 05:30, vishwanath ramachandran_at_honeywell.com wrote:

>> Use e.g. "svn propset svn:mime-type image/jpeg file.jpg" on each file in
>> the working copy, followed by "svn commit", to give it the correct MIME
>> type in the repository.
>>
>> You can use automatic properties (auto-props) to automate the setting of
>> svn:mime-type and other properties when new files are added on the
>> client.
>>
>> You can write a pre-commit hook to reject commits that add files with
>> improper or missing MIME types.
>
> How do I set this on server?

You can't set it so the server will assign MIME types automatically, if that's what you want. You can only do the three steps I described above.

> I set svn mime-type on client, but still the videos do not play

Exactly what commands did you type? For example, if you have a QuickTime video file, you should type something like this:

cd path/to/workingcopy
svn propset svn:mime-type video/quicktime video.mov
svn commit video.mov -m "add svn:mime-type"

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419779

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-19 02:00:34 CET

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

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