Attachments can be copied, moved, or renamed using built-in session methods.
All of those actions are executed when saveChanges
is called and take place on the server-side,
removing the need to transfer the entire attachment binary data over the network in order to perform the action.
{PANEL: Copy attachment}
Attachment can be copied using one of the session.advanced().attachments().copy
methods:
{CODE:java copy_0@DocumentExtensions\Attachments\CopyMoveRename.java /}
{CODE:java copy_1@DocumentExtensions\Attachments\CopyMoveRename.java /}
{PANEL/}
{PANEL: Move attachment}
Attachment can be moved using one of the session.advanced().attachments().move
methods:
{CODE:java move_0@DocumentExtensions\Attachments\CopyMoveRename.java /}
{CODE:java move_1@DocumentExtensions\Attachments\CopyMoveRename.java /}
{PANEL/}
{PANEL: Rename attachment}
Attachment can be renamed using one of the session.advanced().attachments().rename
methods:
{CODE:java rename_0@DocumentExtensions\Attachments\CopyMoveRename.java /}
{CODE:java rename_1@DocumentExtensions\Attachments\CopyMoveRename.java /}
{PANEL/}