This module allows uploaded files to be viewed online.
A list of file extensions can be specified and for each file extension a renderer. In conjunction with the upload module, the links in the attachement table can be replaced by links to view the files online.
There are three renderers: using a 'pre' tag, using an 'img' tag and using a Drupal Input format. With the input format renderer, one can for example highlight source code files using any code filter supported by Drupal.