+ * // Create an attachment for a custom file field
+ * $result = civicrm_api3('Attachment', 'create', array(
+ * 'field_name' => 'custom_6',
+ * 'entity_id' => 123,
+ * 'name' => 'README.txt',
+ * 'mime_type' => 'text/plain',
+ * 'content' => 'Please to read the README',
+ * ));
+ * $attachment = $result['values'][$result['id']];
+ * echo sprintf("<a href='%s'>View %s</a>", $attachment['url'], $attachment['name']);
+ * @endcode
+ *
+ * @code
+ * // Move an existing file and save as an attachment