As an alternative to default download behavior, you can use the download_redir.properties file to define redirection URLs for specified MIME types.
By default, the file is installed in one of the following locations, depending on your application:
The following key-value pair is from the download_redir.properties file, where the MIME type serves as the key.
application/x-filenet-rm-electronicrecord=/findRecordTarget?id={OBJECT_ID}&objectStoreName={OBJECT_STORE_NAME}&vsId={VERSION_SERIES_ID}
You might have a need to extend this file with your own MIME type and URL pairs. For example, when users invoke a download operation on files of a certain MIME type, you could preprocess the files prior to downloading, or you could simply redirect to a another file.
The macros that you can use in a URL value are explained in the file. After modifying download_redir.properties, you must restart the Web application for your settings to take effect.
NOTE The default download_redir.properties file defines redirection URLs for Records Manager MIME types. Do not modify these default key and value pairs.