{"id":3006,"date":"2015-11-25T09:15:31","date_gmt":"2015-11-25T09:15:31","guid":{"rendered":"http:\/\/tutorialsclass.com\/?p=3006"},"modified":"2020-05-26T09:49:58","modified_gmt":"2020-05-26T09:49:58","slug":"php-file-upload","status":"publish","type":"post","link":"https:\/\/tutorialsclass.com\/php-file-upload\/","title":{"rendered":"PHP File Upload"},"content":{"rendered":"\n<p>In this tutorial, we will learn how to upload files using PHP.<\/p>\n\n\n\n<p>We can easily upload files to the server using PHP &amp; HTML Form. PHP has the ability to upload different kind of files. We can upload images, audios, videos, ZIP files, MS Office documents, PDFs and many others.<\/p>\n\n\n\n<p>We need to be careful when uploading file. We can check file type &amp; size, so that we allow only valid file to upload. This will be shown in later example.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Important Things about File Upload:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>We need to use\u00a0<code>&lt;input\u00a0type=\"file\"><\/code>\u00a0in HTML form to create file upload button.<\/li><li>File upload requires that HTML form method is set to \u201cpost\u201d<\/li><li>The form also needs attribute:\u00a0<code>enctype=\"multipart\/form-data\"<\/code><\/li><li>After upload, all file related information is available in $_FILES variable<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">PHP $_FILES variable:<\/h3>\n\n\n\n<p><code>$_FILES&nbsp;<\/code>is a PHP global variable (actually array) that we use during file uploading. This variable contains all the information such as file name, file type, file size, temp file location and errors related to file that we are uploading.<\/p>\n\n\n\n<p>Let us assume that we are using&nbsp;<code>&lt;input&nbsp;type=\"file\"&nbsp;name=\"user_file\"&nbsp;&gt;<\/code>&nbsp;to create upload field. Then <code>$_FILES<\/code> variable will have information as mentioned in following table.<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th><strong>Global $_FILES Variable<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><tr><td>$_FILES[\u2018user_file\u2019][\u2018name\u2019]<\/td><td>returns file name of uploaded file.<\/td><\/tr><tr><td>$_FILES[\u2018user_file\u2019][\u2018type\u2019]<\/td><td>returns MIME type\/extension of the file.<\/td><\/tr><tr><td>$_FILES[\u2018user_file\u2019][\u2018size\u2019]<\/td><td>returns size of the file (in bytes).<\/td><\/tr><tr><td>$_FILES[\u2018user_file\u2019][\u2018tmp_name\u2019]<\/td><td>returns temporary file name along with location on server.<\/td><\/tr><tr><td>$_FILES[\u2018user_file\u2019][\u2018error\u2019]<\/td><td>returns error code related to file.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">PHP move_uploaded_file() function:<\/h3>\n\n\n\n<p>After form submission, file gets uploaded to temporary folder first. Then, we can use a PHP function to move that file from temporary location to desired folder.<\/p>\n\n\n\n<p>The&nbsp;<code>move_uploaded_file()<\/code>&nbsp;function is used to move the uploaded file to new location. This function returns TRUE on success &amp; FALSE if any error occurs. Therefore, we will use return value to display success or failure message accordingly.<\/p>\n\n\n\n<p> Syntax:<br><code>move_uploaded_file&nbsp;(&nbsp;$file_name&nbsp;,&nbsp;$destination&nbsp;)<\/code><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">PHP File Upload &#8211; Simple Example<\/h3>\n\n\n\n<pre class=\"wp-block-code language-markup\"><code>&lt;html>\n    &lt;body>\n        &lt;form action=\"file2.php\" method=\"post\" enctype=\"multipart\/form-data\">\n        Upload Your File: &lt;input type=\"file\" name=\"user_file\">\n        &lt;input type=\"submit\">\n        &lt;\/form>\n    &lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code language-php\"><code>&lt;?php\n$file_name = $_FILES&#91;'user_file']&#91;'name'];\n$file_source_location = $_FILES&#91;'user_file']&#91;'tmp_name'];\n$file_size = $_FILES&#91;'user_file']&#91;'size'];\n$file_target_location = \"upload\/\" . $file_name;\n \n$file_upload_status = move_uploaded_file($file_source_location, $file_target_location);\n \nif ($file_upload_status == true) {\n    echo \"Congratulations. File Uploaded to: $file_target_location\";\n} else {\n    echo \"Sorry. File uploading failed!\";\n    print_r(error_get_last());\n}\n?><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">PHP File Upload &#8211; Example with file size &amp; file type check<\/h3>\n\n\n\n<p>When we allow users to upload file, user can upload any kind of file. This can be dangerous because some type of files can hack your website &amp; destroy your data. Another problem is that sometimes user upload large size files that can exceed your web hosting storage space.<\/p>\n\n\n\n<p>As mentioned in the table, PHP $_FILES variable provides different type of information regarding file. This information help us to check file size &amp; type before uploading to server. In the following example, we will restrict users to upload image file (png &amp; jpg) less than 1 mb.<\/p>\n\n\n\n<pre class=\"wp-block-code language-markup\"><code>&lt;html>\n    &lt;body>\n        &lt;form action=\"file2.php\" method=\"post\" enctype=\"multipart\/form-data\">\n        User Name: &lt;input type=\"text\" name=\"user_name\" \/>&lt;br>\n        Upload File: &lt;input type=\"file\" name=\"user_file\" \/>\n        &lt;input type=\"submit\">\n        &lt;\/form>\n    &lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code language-php\"><code>&lt;?php\n$file_name = $_FILES&#91;'user_file']&#91;'name'];\n$file_source_location = $_FILES&#91;'user_file']&#91;'tmp_name'];\n$file_size = $_FILES&#91;'user_file']&#91;'size'];\n$file_target_location = \"upload\/\" . $file_name;\n$file_type = pathinfo($file_name, PATHINFO_EXTENSION);\n \nif ($file_type != \"jpg\" &amp;&amp; $file_type != \"png\") {\n    echo \"Sorry. Only image files .jpg and .png is allowed to upload\";\n    die();\n}\nif ($file_size > 1048576) {\n    echo \"Sorry. Your file is too large. You can upload less than 1 Mb\";\n    die();\n}\n \n$file_upload_status = move_uploaded_file($file_source_location, $file_target_location);\n \nif ($file_upload_status == true) {\n    echo \"Congratulations. File Uploaded to: $file_target_location\";\n} else {\n    echo \"Sorry. File uploading failed!\";\n    print_r(error_get_last());\n}\n?><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">Common Errors during File upload:<\/h4>\n\n\n\n<p><strong>Warning:<\/strong> failed to open stream: No such file or directory&#8230;&#8221;<br><strong>Solution:<\/strong> This error occurs if a target file\/folder location is not valid. In the above example, if the &#8220;upload&#8221; folder does not exist, it will throw an error. Simply create an &#8220;upload&#8221; folder where you are running PHP Upload script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn PHP File Upload with example. In this tutorial, we will upload files to server using HTML Form &#038; PHP $_FILES variable &#038; move_uploaded_file() function.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"keywords":[],"class_list":["post-3006","post","type-post","status-publish","format-standard","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP File Upload | Learn File uploading with Example | Tutorials Class<\/title>\n<meta name=\"description\" content=\"Learn PHP File Upload with example. In this tutorial, we will upload files to server using HTML Form, PHP $_FILES variable &amp; move_uploaded_file() function.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorialsclass.com\/php-file-upload\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP File Upload | Learn File uploading with Example | Tutorials Class\" \/>\n<meta property=\"og:description\" content=\"Learn PHP File Upload with example. In this tutorial, we will upload files to server using HTML Form, PHP $_FILES variable &amp; move_uploaded_file() function.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorialsclass.com\/php-file-upload\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorials Class\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tutorialsclass\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-25T09:15:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-26T09:49:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/07\/tutorials-class-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tutorials Class\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TutorialsClass\" \/>\n<meta name=\"twitter:site\" content=\"@TutorialsClass\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tutorials Class\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/tutorialsclass.com\/php-file-upload\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/tutorialsclass.com\/php-file-upload\/\"},\"author\":{\"name\":\"Tutorials Class\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/person\/f7d4f67fc9721ef3ea91cb21aaf89e3e\"},\"headline\":\"PHP File Upload\",\"datePublished\":\"2015-11-25T09:15:31+00:00\",\"dateModified\":\"2020-05-26T09:49:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/tutorialsclass.com\/php-file-upload\/\"},\"wordCount\":495,\"publisher\":{\"@id\":\"https:\/\/tutorialsclass.com\/#organization\"},\"articleSection\":[\"PHP Tutorial\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorialsclass.com\/php-file-upload\/\",\"url\":\"https:\/\/tutorialsclass.com\/php-file-upload\/\",\"name\":\"PHP File Upload | Learn File uploading with Example | Tutorials Class\",\"isPartOf\":{\"@id\":\"https:\/\/tutorialsclass.com\/#website\"},\"datePublished\":\"2015-11-25T09:15:31+00:00\",\"dateModified\":\"2020-05-26T09:49:58+00:00\",\"description\":\"Learn PHP File Upload with example. In this tutorial, we will upload files to server using HTML Form, PHP $_FILES variable & move_uploaded_file() function.\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorialsclass.com\/php-file-upload\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorialsclass.com\/php-file-upload\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorialsclass.com\/php-file-upload\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorialsclass.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn\",\"item\":\"https:\/\/tutorialsclass.com\/learn\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP Tutorial\",\"item\":\"https:\/\/tutorialsclass.com\/learn\/php\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"PHP File Upload\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorialsclass.com\/#website\",\"url\":\"https:\/\/tutorialsclass.com\/\",\"name\":\"Tutorials Class\",\"description\":\"Online Tutorials for Beginners\",\"publisher\":{\"@id\":\"https:\/\/tutorialsclass.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorialsclass.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/tutorialsclass.com\/#organization\",\"name\":\"Tutorials Class\",\"url\":\"https:\/\/tutorialsclass.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png\",\"contentUrl\":\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png\",\"width\":442,\"height\":94,\"caption\":\"Tutorials Class\"},\"image\":{\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tutorialsclass\",\"https:\/\/x.com\/TutorialsClass\",\"https:\/\/in.pinterest.com\/merientinfotech\/boards\/\",\"https:\/\/www.youtube.com\/channel\/UCzbpQXlqec-bQf1_kwrTuoA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/person\/f7d4f67fc9721ef3ea91cb21aaf89e3e\",\"name\":\"Tutorials Class\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/346276d8e1600eec36df1bf9adcf78bf1eabb87fc0a79250e0565a88809b8f14?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/346276d8e1600eec36df1bf9adcf78bf1eabb87fc0a79250e0565a88809b8f14?s=96&d=mm&r=g\",\"caption\":\"Tutorials Class\"},\"sameAs\":[\"tcadmin\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP File Upload | Learn File uploading with Example | Tutorials Class","description":"Learn PHP File Upload with example. In this tutorial, we will upload files to server using HTML Form, PHP $_FILES variable & move_uploaded_file() function.","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:\/\/tutorialsclass.com\/php-file-upload\/","og_locale":"en_US","og_type":"article","og_title":"PHP File Upload | Learn File uploading with Example | Tutorials Class","og_description":"Learn PHP File Upload with example. In this tutorial, we will upload files to server using HTML Form, PHP $_FILES variable & move_uploaded_file() function.","og_url":"https:\/\/tutorialsclass.com\/php-file-upload\/","og_site_name":"Tutorials Class","article_publisher":"https:\/\/www.facebook.com\/tutorialsclass","article_published_time":"2015-11-25T09:15:31+00:00","article_modified_time":"2020-05-26T09:49:58+00:00","og_image":[{"width":600,"height":600,"url":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/07\/tutorials-class-logo.png","type":"image\/png"}],"author":"Tutorials Class","twitter_card":"summary_large_image","twitter_creator":"@TutorialsClass","twitter_site":"@TutorialsClass","twitter_misc":{"Written by":"Tutorials Class","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tutorialsclass.com\/php-file-upload\/#article","isPartOf":{"@id":"https:\/\/tutorialsclass.com\/php-file-upload\/"},"author":{"name":"Tutorials Class","@id":"https:\/\/tutorialsclass.com\/#\/schema\/person\/f7d4f67fc9721ef3ea91cb21aaf89e3e"},"headline":"PHP File Upload","datePublished":"2015-11-25T09:15:31+00:00","dateModified":"2020-05-26T09:49:58+00:00","mainEntityOfPage":{"@id":"https:\/\/tutorialsclass.com\/php-file-upload\/"},"wordCount":495,"publisher":{"@id":"https:\/\/tutorialsclass.com\/#organization"},"articleSection":["PHP Tutorial"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/tutorialsclass.com\/php-file-upload\/","url":"https:\/\/tutorialsclass.com\/php-file-upload\/","name":"PHP File Upload | Learn File uploading with Example | Tutorials Class","isPartOf":{"@id":"https:\/\/tutorialsclass.com\/#website"},"datePublished":"2015-11-25T09:15:31+00:00","dateModified":"2020-05-26T09:49:58+00:00","description":"Learn PHP File Upload with example. In this tutorial, we will upload files to server using HTML Form, PHP $_FILES variable & move_uploaded_file() function.","breadcrumb":{"@id":"https:\/\/tutorialsclass.com\/php-file-upload\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorialsclass.com\/php-file-upload\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tutorialsclass.com\/php-file-upload\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorialsclass.com\/"},{"@type":"ListItem","position":2,"name":"Learn","item":"https:\/\/tutorialsclass.com\/learn\/"},{"@type":"ListItem","position":3,"name":"PHP Tutorial","item":"https:\/\/tutorialsclass.com\/learn\/php\/"},{"@type":"ListItem","position":4,"name":"PHP File Upload"}]},{"@type":"WebSite","@id":"https:\/\/tutorialsclass.com\/#website","url":"https:\/\/tutorialsclass.com\/","name":"Tutorials Class","description":"Online Tutorials for Beginners","publisher":{"@id":"https:\/\/tutorialsclass.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorialsclass.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/tutorialsclass.com\/#organization","name":"Tutorials Class","url":"https:\/\/tutorialsclass.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/","url":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png","contentUrl":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png","width":442,"height":94,"caption":"Tutorials Class"},"image":{"@id":"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tutorialsclass","https:\/\/x.com\/TutorialsClass","https:\/\/in.pinterest.com\/merientinfotech\/boards\/","https:\/\/www.youtube.com\/channel\/UCzbpQXlqec-bQf1_kwrTuoA"]},{"@type":"Person","@id":"https:\/\/tutorialsclass.com\/#\/schema\/person\/f7d4f67fc9721ef3ea91cb21aaf89e3e","name":"Tutorials Class","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorialsclass.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/346276d8e1600eec36df1bf9adcf78bf1eabb87fc0a79250e0565a88809b8f14?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/346276d8e1600eec36df1bf9adcf78bf1eabb87fc0a79250e0565a88809b8f14?s=96&d=mm&r=g","caption":"Tutorials Class"},"sameAs":["tcadmin"]}]}},"_links":{"self":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/posts\/3006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/comments?post=3006"}],"version-history":[{"count":5,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/posts\/3006\/revisions"}],"predecessor-version":[{"id":6141,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/posts\/3006\/revisions\/6141"}],"wp:attachment":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/media?parent=3006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/categories?post=3006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/tags?post=3006"},{"taxonomy":"keywords","embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/keywords?post=3006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}