Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.0.0
-
None
Description
Sometimes it is necessary to add a new mime type for a local installation.
Doing this is currently done by:
1. edit the file WEB-INF/applicationContext.xml in the webapp folder by uncommenting:
<!-- <bean name="mimeTpes" class="org.apache.archiva.webdav.util.MimeTypes"> <property name="resource" value="archiva-mime-types.txt"/> </bean> -->
So you can use your own file.
2. Then Copy the original
(http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/main/resources/org/apache/archiva/webdav/util/mime.types) to WEB-INF/classes/archiva-mime-types.txt and add or change a mime type line.
This would be much easier if this could be configurable by beeing able to set the mime-types file in the achiva config file. And preferably being able to do it via the GUI.
As a minimum we should be able to set the filename.
As an advanced and possible future solution we could set and unset each line from that file.