copyAttachmentById

Description

Copies the attachment for the provided id from one page to another.

Return Type

Boolean (true/false)

Returns "true" if the attachment was copied successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.

Example

copyAttachmentById(10205, 11801);

Copies the attachment with id 10205 to the page with id 11801.

See also

Peacock