Print or display attachment file
This API call sends the file attached to a document to the printer or monitor.
Example API call
/lcapi?book=1&collection=1&target=utility&action=display_file&filename=att_1521041478673_1521041493681.txt&docid=S1000DBIKE-AAA-D00-00-00-00AA-330A-A
Parameters
| Parameter | Description |
|---|---|
book | The id of the publication, an integer, such as 1. |
collection | The id of the collection, an integer, such as 1. |
target | utility |
action | display_file |
docid | The @DOCUMENT_ID attribute on the <DOCUMENT/> that is being opened. |
filename | The unique file name under which the attachment is stored on the file system. |
Returns
- On success
-
<html> <script>document.location='/lcapi/working/tempatt_1521041478673_1521041493681.txt'</script> <body></body> </html> - On failure
- Returns nothing.