AssetDownloadByGuid and AssetDownloadById

Disable and Enable the Servlets

You can enable or disable the servlets via omn_preference.ini or the backend. By default they are disabled.

URI and Configuration Options

The path to the servlets is (camel case spelling):

  • servlets/assetDownloadByGuidServlet

  • servlets/assetDownloadByIdServlet

Both servlet paths are pointing to the same servlet, thus the behavior will be derived by the parameter(s). The available parameters are:

Parameter Description Example

assetId

Tries to load and send the asset with the specified ID.

This parameter is checked first, if found assetGuid and previewGuid parameters will be ignored

http://SERVER_NAME/servlets/assetDownloadByIdServlet?assetId=1234

assetGuid

Tries to load and send the asset with the specified GUID.

This parameter is checked second, if found previewGuid parameters will be ignored

http://SERVER_NAME/servlets/assetDownloadByGuidServlet?assetGuid=12345678-ABCD-1234-5678-123456789ABC

previewGuid

Tries to load and send the asset with the specified GUID.

http://SERVER_NAME/servlets/assetDownloadByGuidServlet?previewGuid=12345678-ABCD-1234-5678-123456789ABC

openDownload

Opens a "Save as" window instead of displaying the image directly in the browser.

http://SERVER_NAME/servlets/assetDownloadByGuidServlet?previewGuid=12345678-ABCD-1234-5678-123456789ABC&openDownload=true

The behavior of the servlet will be determined by the parameter, the order is as listed above. E.g: specifying assetId and assetGuid will use the assetId, in case it is not found an error message will occur. The servlet will not check if an image with the specified GUID can be loaded, this parameter will be ignored.
In case you need the servlet names and/or parameter names to be different, you can use the rewrite filter to change this (catalinabase/webapps/ROOT/WEB-INF/urlrewrite.xml, config/urlrewrite.xml)

Welcome to the AI Chat!

Write a prompt to get started...