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

Re: SVN files content Type

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 10 May 2011 12:47:08 +0300

Ryan Schmidt wrote on Tue, May 10, 2011 at 02:41:25 -0500:
>
> On May 10, 2011, at 02:24, D, Dinoj wrote:
>
> > Thanks for your prompt response. The content type should be worked only
> > while accessing the files through web browser.The problem here we are
> > facing is that while accessing the files through web browser the
> > extensions .docx, .pptx, .xlsx are opening as zip files. The
> > configuration for SVN in apache is
> >
> > <Location /repo/test>
> > DAV svn
> > SVNPath /repo/Test
> >
> > </Location>
> >
> >
> > In which can we point the content to conf/mime.types file using
> >
> > TypesConfig conf/mime.types
> >
> > Or is there any methods like
> >
> > ModMimeUsePathInfo on
> >
> > Or
> > AddType image/gif .gif or if any?
>
> No. Set the svn:mime-type property to the correct value on these files.
>

If nothing else, it ought to be technically possible to throw an HTTP
proxy that detects file extensions on GET requests to the mod_dav_svn
-controlled location and rewrites the Content-Type for those.

So, I'd expect there to be a way to configure httpd to bypass
mod_dav_svn's reported MIME types.

>
>
Received on 2011-05-10 11:47:50 CEST

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.