{"id":24229,"date":"2024-02-15T14:53:34","date_gmt":"2024-02-15T22:53:34","guid":{"rendered":"https:\/\/docs.extraview.com\/v25\/book\/addattachment-1\/"},"modified":"2025-02-17T09:38:04","modified_gmt":"2025-02-17T17:38:04","slug":"addattachment-1","status":"publish","type":"page","link":"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/","title":{"rendered":"add_attachment"},"content":{"rendered":"<p>This action uploads a file from the local file system to be attached to an existing record in ExtraView. It is designed to be used within an HTML form. Note that the syntax and usage of this command is different to other API commands; extra care should therefore be taken when using the add_attachment command.<\/p>\n<h3 style=\"color: rgb(85, 85, 85); font-size: 12pt;\">\n\tSYNTAX<\/h3>\n<p><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">&lt;FORM METHOD=&#8221;post&#8221; action=http:\/\/www.myserver.com\/dev\/ExtraView\/ev_api.action?<br \/>\n\tuser_id=username<br \/>\n\t&amp;password=password<span>&nbsp;<\/span><\/span>OR<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">[&amp;access_token=token-value]<br \/>\n\t&amp;statevar=add_attachment<br \/>\n\t&amp;p_template_file=template_filename<br \/>\n\t[&amp;strict=no | yes]<br \/>\n\t&nbsp;<\/span><\/p>\n<p>This command must have additional parameters that are not part of the FORM tag, but are part of the HTML within the<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">&lt;form&gt; &#8230; &#8230; &lt;\/form&gt;<\/span><span>&nbsp;<\/span>construct. These will be provided as part of the INPUT tags within the form. The INPUT tags that must be provided are:<\/p>\n<table class=\"border\" style=\"border: 1px dotted rgb(211, 211, 211);\" width=\"75%\">\n<tbody>\n<tr class=\"tableHeaderRow\" style=\"color: rgb(255, 255, 255); background-color: rgb(204, 204, 204); font-weight: bold;\">\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tTag name<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tPurpose<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tp_id<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe issue ID<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tp_attach_desc<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe description of the attachment<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tfile<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe filename of the attachment<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The following example shows how this API command is used from within an HTML form. The example includes the use of a template file that formats the results returned from ExtraView.<\/p>\n<h3 style=\"color: rgb(85, 85, 85); font-size: 12pt;\">\n\tAdding an attachment from an HTML page<\/h3>\n<p><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">&lt;html&gt;<br \/>\n\t&lt;title&gt;Add an attachment to an existing issue&lt;\/title&gt;<br \/>\n\t&lt;body&gt;<br \/>\n\t&lt;form method=&#8221;POST&#8221;<br \/>\n\t&nbsp;&nbsp;&nbsp; action=&#8221;http:\/\/myserver.extraview.net\/dev\/ExtraView\/ev_api.action?<br \/>\n\t&nbsp;&nbsp;&nbsp; statevar=add_attachment&amp;p_template_file=attach_results.html&amp;p_id=12345&#8243;<br \/>\n\t&nbsp;&nbsp;&nbsp; enctype=&#8221;multipart\/form-data&#8221;&gt;<br \/>\n\t&lt;input type=&#8221;hidden&#8221; name=&#8221;p_id&#8221; value=&#8221;12345&#8243;&gt;<br \/>\n\t&lt;table&gt;<br \/>\n\t&lt;tr&gt;<br \/>\n\t&lt;td&gt;Description&lt;\/td&gt;<br \/>\n\t&lt;td&gt;&lt;input type=&#8221;text&#8221; size=&#8221;40&#8243; name=&#8221;p_attach_desc&#8221;&gt;&lt;\/td&gt;<br \/>\n\t&lt;\/tr&gt;<br \/>\n\t&lt;tr&gt;<br \/>\n\t&lt;td colspan=&#8221;2&#8243;&gt;Add attachment&lt;\/td&gt;<br \/>\n\t&lt;\/tr&gt;<br \/>\n\t&lt;tr&gt;<br \/>\n\t&lt;td&gt;Filename&lt;\/td&gt;<br \/>\n\t&lt;td&gt;&lt;input type=&#8221;file&#8221; size=&#8221;40&#8243; name=&#8221;file&#8221;&gt;&lt;\/td&gt;<br \/>\n\t&lt;\/tr&gt;<br \/>\n\t&lt;tr&gt;<br \/>\n\t&lt;td colspan=&#8221;2&#8243;&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;Add Attachment&#8221;&gt; &lt;\/td&gt;<br \/>\n\t&lt;\/tr&gt;<br \/>\n\t&lt;\/table&gt;<br \/>\n\t&lt;\/form&gt;<br \/>\n\t&lt;\/body&gt;<br \/>\n\t&lt;\/html&gt;<\/span><\/p>\n<p>\n\tNote that if you are using a template file to return the results of the command, you must include the parameter named<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">p_id<\/span><span>&nbsp;<\/span>twice within the HTML, once within the<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">&lt;form &#8230;&gt;<\/span><span>&nbsp;<\/span>tag, and once as a hidden field within the<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">&lt;INPUT &#8230;&gt;<\/span><span>&nbsp;<\/span>tag. This is because of the limitations of how browsers work with multi-part forms.<\/p>\n<h3 style=\"color: rgb(85, 85, 85); font-size: 12pt;\">\n\t<span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">attach_results.html<\/span><span>&nbsp;<\/span>template file<\/h3>\n<p>This file must reside in the<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">WEB-INF\/user_templates<\/span><span>&nbsp;<\/span>directory. Please see the page on<span>&nbsp;<\/span><a href=\"v25\/manage-server-side-templates\/\" style=\"color: rgb(51, 51, 51); text-decoration: none;\">server-side templates<\/a><span>&nbsp;<\/span>for a fuller explanation. Carefully note the following in the example file. The following fields are available as tags within the template.<\/p>\n<p>You will see in the example that there is a<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">__REPEAT_START__, __REPEAT_STOP__<\/span><span>&nbsp;<\/span>block. This allows the display of all attachments added to the issue, with the one just added being the first in the list. If you only want to see the details of the attachment you just added, you can remove the<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">__REPEAT_START__ and __REPEAT_STOP__<\/span><span>&nbsp;<\/span>statements.<\/p>\n<p><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">&lt;html&gt;<br \/>\n\t&lt;title&gt; Attachment added to ExtraView &lt;\/title&gt;<br \/>\n\t&lt;body&gt;<br \/>\n\t&lt;p&gt;Attachment added successfully to issue # __ID__&lt;\/p&gt;<br \/>\n\t&lt;br&gt;<br \/>\n\tA list of all attachments held in the issue is as follows<br \/>\n\t&lt;br&gt;&lt;br&gt;<br \/>\n\t&lt;table&gt;<br \/>\n\t&lt;tr&gt;<br \/>\n\t&lt;td&gt;File name&lt;\/td&gt;<br \/>\n\t&lt;td&gt;Description&lt;\/td&gt;<br \/>\n\t&lt;td&gt;File size&lt;\/td&gt;<br \/>\n\t&lt;td&gt;Created By&lt;\/td&gt;<br \/>\n\t&lt;td&gt;Date Created&lt;\/td&gt;<br \/>\n\t&lt;\/tr&gt;<br \/>\n\t__REPEAT_START__<br \/>\n\t&lt;tr&gt;<br \/>\n\t&lt;td&gt;__FILE_NAME__&lt;\/td&gt;<br \/>\n\t&lt;td&gt;__ATTACH_DESC__&lt;\/td&gt;<br \/>\n\t&lt;td&gt;__FILE_SIZE__&lt;\/td&gt;<br \/>\n\t&lt;td&gt;__CREATED_BY_USER__&lt;\/td&gt;<br \/>\n\t&lt;td&gt;__DATE_CREATED__&lt;\/td&gt;<br \/>\n\t&lt;\/tr&gt;<br \/>\n\t__REPEAT_STOP__<br \/>\n\t&lt;\/table&gt;<br \/>\n\t&lt;br&gt;<br \/>\n\t&lt;\/body&gt;<br \/>\n\t&lt;\/html&gt;<\/span><\/p>\n<h3 style=\"color: rgb(85, 85, 85); font-size: 12pt;\">\n\tNOTES<\/h3>\n<ul>\n<li style=\"list-style: outside url(&quot;\/misc\/menu-collapsed.png&quot;) disc; padding: 0px 0px 3px;\">\n\t\tThis command uses a different syntax to most other commands within the API. This is to allow ExtraView to handle the multi-part form, used for uploading files to the server<\/li>\n<li style=\"list-style: outside url(&quot;\/misc\/menu-collapsed.png&quot;) disc; padding: 0px 0px 3px;\">\n\t\tYou can upload and attach the same file multiple times to a single record within ExtraView<\/li>\n<li style=\"list-style: outside url(&quot;\/misc\/menu-collapsed.png&quot;) disc; padding: 0px 0px 3px;\">\n\t\tThere are no limits to the number of files that can be attached to a single record<\/li>\n<li style=\"list-style: outside url(&quot;\/misc\/menu-collapsed.png&quot;) disc; padding: 0px 0px 3px;\">\n\t\tEach file uploaded can be up to 4 GB in size<\/li>\n<li style=\"list-style: outside url(&quot;\/misc\/menu-collapsed.png&quot;) disc; padding: 0px 0px 3px;\">\n\t\tThe syntax of this command is likely to change with future versions of ExtraView, to be consistent with the same action structure as other commands<\/li>\n<li style=\"list-style: outside url(&quot;\/misc\/menu-collapsed.png&quot;) disc; padding: 0px 0px 3px;\">\n\t\tThe optional parameter<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">strict<\/span>, with a value of<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">yes<\/span>, enforces the action to operate only on<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">ALT_ID.<\/span><span>&nbsp;<\/span>If there is no match for the value of the<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">ALT_ID<\/span><span>&nbsp;<\/span>in the specified<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">ID<span>&nbsp;<\/span><\/span>parameter, then the message<span>&nbsp;<\/span><em>Invalid Id<span>&nbsp;<\/span><\/em>will be returned.&nbsp; This means that a matching<span>&nbsp;<\/span><span class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">ID<\/span><span>&nbsp;<\/span>value will be ignored<\/li>\n<li style=\"list-style: outside url(&quot;\/misc\/menu-collapsed.png&quot;) disc; padding: 0px 0px 3px;\">\n\t\tThe optional&nbsp;<code style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">access_token<\/code>&nbsp;parameter allows you to use a valid OAuth2 token obtained with the&nbsp;<code style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">get_token<\/code>&nbsp;command.&nbsp; If you provide the&nbsp;<code style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">access_token<\/code>&nbsp;parameter, then the&nbsp;<code style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">user_id<\/code>&nbsp;and&nbsp;<code style=\"font-family: courier, monospace; color: rgb(170, 0, 0);\">password<\/code>&nbsp;parameters should not be provided.&nbsp; This prevents the password being sent in clear text over your network connection.<\/li>\n<\/ul>\n<table class=\"border\" style=\"border: 1px dotted rgb(211, 211, 211);\" width=\"75%\">\n<tbody>\n<tr class=\"tableHeaderRow\" style=\"color: rgb(255, 255, 255); background-color: rgb(204, 204, 204); font-weight: bold;\">\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tTag name<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tPurpose<\/td>\n<\/tr>\n<tr>\n<td class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0); border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\t__ATTACH_DESC__<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe description of the file that was attached<\/td>\n<\/tr>\n<tr>\n<td class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0); border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\t__ATTACHMENT_ID__<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe internal ID of the attachment. Typically not useful for external purposes<\/td>\n<\/tr>\n<tr>\n<td class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0); border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\t__CREATED_BY_USER__<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe user who added the attachment<\/td>\n<\/tr>\n<tr>\n<td class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0); border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\t__DATE_CREATED__<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe date the attachment was created<\/td>\n<\/tr>\n<tr>\n<td class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0); border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\t__ID__<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe ID of the issue to which the attachment was added<\/td>\n<\/tr>\n<tr>\n<td class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0); border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\t__FILE_NAME__<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe filename of the file attached<\/td>\n<\/tr>\n<tr>\n<td class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0); border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\t__FILE_SIZE__<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe size, in bytes, of the attached file<\/td>\n<\/tr>\n<tr>\n<td class=\"fixedWidthFont\" style=\"font-family: courier, monospace; color: rgb(170, 0, 0); border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\t__NFILES__<\/td>\n<td style=\"border: 1px dotted rgb(211, 211, 211); padding: 5px;\">\n\t\t\t\tThe total number of files attached to the issue<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This action uploads a file from the local file system to be attached to an existing record in ExtraView. It is designed to be used within an HTML form. Note that the syntax and usage of this command is different to other API commands; extra care should therefore be taken when using the add_attachment command&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":24223,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_lmt_disableupdate":"no","_lmt_disable":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"class_list":["post-24229","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>add_attachment - Product Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"add_attachment - Product Documentation\" \/>\n<meta property=\"og:description\" content=\"This action uploads a file from the local file system to be attached to an existing record in ExtraView. It is designed to be used within an HTML form. Note that the syntax and usage of this command is different to other API commands; extra care should therefore be taken when using the add_attachment command....\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Product Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-17T17:38:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/\",\"url\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/\",\"name\":\"add_attachment - Product Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/docs.extraview.com\/v25\/#website\"},\"datePublished\":\"2024-02-15T22:53:34+00:00\",\"dateModified\":\"2025-02-17T17:38:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.extraview.com\/v25\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ExtraView 25\",\"item\":\"https:\/\/docs.extraview.com\/v25\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Application Programming Interface\",\"item\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"add_attachment\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/#website\",\"url\":\"https:\/\/docs.extraview.com\/v25\/\",\"name\":\"ExtraView Product Documentation\",\"description\":\"ExtraView Documentation\",\"publisher\":{\"@id\":\"https:\/\/docs.extraview.com\/v25\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.extraview.com\/v25\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/#organization\",\"name\":\"ExtraView Corporation\",\"url\":\"https:\/\/docs.extraview.com\/v25\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png\",\"contentUrl\":\"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png\",\"width\":512,\"height\":512,\"caption\":\"ExtraView Corporation\"},\"image\":{\"@id\":\"https:\/\/docs.extraview.com\/v25\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"add_attachment - Product Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/","og_locale":"en_US","og_type":"article","og_title":"add_attachment - Product Documentation","og_description":"This action uploads a file from the local file system to be attached to an existing record in ExtraView. It is designed to be used within an HTML form. Note that the syntax and usage of this command is different to other API commands; extra care should therefore be taken when using the add_attachment command....","og_url":"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/","og_site_name":"Product Documentation","article_modified_time":"2025-02-17T17:38:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/","url":"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/","name":"add_attachment - Product Documentation","isPartOf":{"@id":"https:\/\/docs.extraview.com\/v25\/#website"},"datePublished":"2024-02-15T22:53:34+00:00","dateModified":"2025-02-17T17:38:04+00:00","breadcrumb":{"@id":"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/addattachment-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.extraview.com\/v25\/"},{"@type":"ListItem","position":2,"name":"ExtraView 25","item":"https:\/\/docs.extraview.com\/v25\/"},{"@type":"ListItem","position":3,"name":"Application Programming Interface","item":"https:\/\/docs.extraview.com\/v25\/extraview-25\/application-programming-interface-1\/"},{"@type":"ListItem","position":4,"name":"add_attachment"}]},{"@type":"WebSite","@id":"https:\/\/docs.extraview.com\/v25\/#website","url":"https:\/\/docs.extraview.com\/v25\/","name":"ExtraView Product Documentation","description":"ExtraView Documentation","publisher":{"@id":"https:\/\/docs.extraview.com\/v25\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.extraview.com\/v25\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/docs.extraview.com\/v25\/#organization","name":"ExtraView Corporation","url":"https:\/\/docs.extraview.com\/v25\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.extraview.com\/v25\/#\/schema\/logo\/image\/","url":"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png","contentUrl":"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png","width":512,"height":512,"caption":"ExtraView Corporation"},"image":{"@id":"https:\/\/docs.extraview.com\/v25\/#\/schema\/logo\/image\/"}}]}},"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"carl.koppel","author_link":"https:\/\/docs.extraview.com\/v25\/author\/carl-koppel\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/pages\/24229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/comments?post=24229"}],"version-history":[{"count":0,"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/pages\/24229\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/pages\/24223"}],"wp:attachment":[{"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/media?parent=24229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}