Skip to Content

How to configure a Viewer for the SAM/ELN Server

Client configuration

If you wish to specify the mimetype for a file that you are loading through the ELN client, you can do this in the eln.ini file located in your user home directory. By default, files of unknown type are loaded with the mimetype application/x-eln-% fileextension %.

To configure a new type, add a line to eln.ini of the format: 'extension_for_mimetype|' <% resulting mime type %>'=.'<% extension of the incoming file %>

Example for a .txt file - extension_for_mimetype|text/plain=.txt

Server configuration

In order to register the viewers on the server you will need to modify two different files stored on the server, you can upload the modified files to the server through a webDAV client, or if you are using windows you can set up a 'network place' to the location on the server where the files are uploaded to. Below are the files and the changes needed: