Configuring Document Management
As part of the ARCHBIUS document management system, the program sends documents to the client browser in MIME (Multipurpose Internet Mail Extensions) format, a formal extension to the Internet standard for handing embedded files for text, audio, video, or application specific data.
You can control what file types and what MIME types the program uses.
The documentManagement Tag
The documentManagement
section of the ..\Afmxx\tools\tomcat\webapps\archibus\WEB-INF\config\context\compatibility\afm-config.xml
file specifies which types of files users can check in and out of Archibus
and how they should be displayed when downloaded.
For instance:
The fileType Tag
Including a fileType
entry permits that type of file to be uploaded
and downloaded.
- showDocument controls how the file is handled when users click the Show Document button.
- checkOut controls how the file is handled when users click the Check Out Document button.
The header tag specifies the MIME instructions that are included in the message back to your browser in the header announcing the file.
- contentType instructs your browser as to the type/subtype (e.g. "text/plain" "video/mpg") of the data being retrieved. If your browser has built-in support for this type, the browser displays the file. Otherwise, the browser looks up the extension in its table of helper applications (e.g. the Adobe Pdf reader) to see what program to use to launch the file.
- contentDisposition can specify that the document should be treated as an inline extension or as a document attachment.
The RFC 2183 content dispositions that are of most relevance are:
- inline -- specifies that the document should be immediately displayed to the user. Set this only if the client browser natively understands, or has a plug-in for displaying, this type. For instance, if you specify inline for Pdf files or ppt files, and the user does not have the Adobe Pdf reader or the Microsoft PowerPoint plug-in (respectively), the browser will display an error or a series of encoded characters.
- attachment; filename= -- instructs the browser to present a dialog from which you can open or save the document with the default filename supplied by the server.
Typical Content Types
Some typical built-in types are:
File Extension |
Description |
bin |
application/octet-stream |
bmp |
image/bmp |
c |
text/plain |
css |
text/css |
avi |
video/x-msvideo |
dwg |
drawing |
exe |
application/octet-stream |
gif |
image/gif |
gtar |
application/x-gtar |
gz |
application/x-gzip |
hlp |
application/winhlp |
htm |
text/html |
html |
text/html |
jpe |
image/jpeg |
jpeg |
image/jpeg |
jpg |
image/jpeg |
js |
application/x-javascript |
lzh |
application/octet-stream |
mov |
video/quicktime |
mpg |
video/mpeg |
mov |
video/quicktime |
mp3 |
audio/mpeg |
ppt |
application/vnd.ms-powerpoint |
ra |
audio/x-pn-realaudio |
rtf |
application/rtf |
txt |
text/plain |
xls |
application/vnd.ms-excel |
zip |
application/zip |