{"id":2629,"date":"2021-10-29T12:40:56","date_gmt":"2021-10-29T04:40:56","guid":{"rendered":"http:\/\/ufqi.com\/blog\/?p=2629"},"modified":"2021-10-31T10:50:13","modified_gmt":"2021-10-31T02:50:13","slug":"gwa2-java-file-upload-issues-2nd","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/gwa2-java-file-upload-issues-2nd\/","title":{"rendered":"GWA2\u5409\u5a03\u5154\ud83d\udc07Java\u4e2d\u7684\u6587\u4ef6\u4e0a\u50b3\u8868\u55ae\u8655\u7406\u82e5\u5e72\u554f\u984c-2"},"content":{"rendered":"<p>\u53bb\u5e74\uff082020\u5e74\uff09\u79cb\u5929\u5199\u4e86\u4e0a\u4e00\u7bc7\uff1aGWA2\u5409\u5a03\u5154\ud83d\udc07Java\u4e2d\u7684\u6587\u4ef6\u4e0a\u50b3\u8868\u55ae\u8655\u7406\u82e5\u5e72\u554f\u984c\uff08\u00a0https:\/\/ufqi.com\/blog\/gwa2-java-file-upload-issues\/ \uff09\uff0c\u968f\u7740\u6211\u4eec\u6301\u7eed\u4e0d\u65ad\u7684\u7814\u53d1\u63a8\u8fdb\u3001\u7cbe\u76ca\u6c42\u7cbe\uff0c\u53d1\u73b0\u5728 GWA2Java \u4e2d\u8655\u7406\u6587\u4ef6\u4e0a\u50b3\u7684HTML\u8868\u55ae\u88ab\u7a31\u7232\u662f\u201c\u5ba2\u8ca8\u6df7\u88dd\u201d\u7684HTTP\u8acb\u6c42\u8655\u7406\u65f6\uff0c\u8fd8\u6709\u4e00\u4e9b\u989d\u5916\u7684\u95ee\u9898\u9700\u8981\u518d\u8865\u5145\u3002\u5179\u8be6\u8ff0\u4e8e\u4e0b\uff0c\u5907\u5fd8\u5907\u67e5\u3002<\/p>\n<p>\uff08\u95ee\u98981-7\u8bf7\u53c2\u8003\u6b64\u524d\u4e00\u7bc7Blog\uff09<\/p>\n<p><strong>8. \u6570\u7ec4\u578b\u6570\u636e\u7684\u63a5\u6536\u4e0e\u5904\u7406<\/strong><\/p>\n<p>\u5728GWA2 Java\u4e2d\uff0c\u4e3a\u4e0a\u4f20\u6587\u4ef6\u5f53HTML\u7684\u8868\u5355\u7c7b\u578b\u88ab\u8bbe\u7f6e\u6210 enctype \u5c6c\u6027\u70ba\u00a0multipart\/form-data \uff0c request.getParameter \u65b9\u6cd5\u5931\u6548\uff0c\u540c\u6837\u5730\u7c7b\u4f3c\u65b9\u6cd5 request.getParameterValues \u4e5f\u5931\u6548\u4e86\uff0c\u5982\u6b64\u4ee5\u6765\uff0c\u83b7\u53d6\u7c7b\u4f3c \u591a\u4e2a checkbox \u8fd9\u6837\u7684HTML form\u7684\u8f93\u5165\uff0c\u5c31\u6210\u4e86\u95ee\u9898\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u9700\u8981\u518d\u6269\u5c55\u4e00\u4e0b\u4e4b\u524d\u4f7f\u7528 FormItems \u6765\u63a5\u7ba1 request\u7684\u76f8\u5173\u5c5e\u6027\u7684\u65b9\u6cd5\u3002<\/p>\n<p>ServletFileUpload sfileupld = new ServletFileUpload((new DiskFileItemFactory()));<br \/> formItems = sfileupld.parseRequest(request); \/\/ can only be parsed once!<br \/> if (formItems != null &amp;&amp; formItems.size() &gt; 0){<br \/> String iname, ivalue; byte[] bytes; Object lastVal;<br \/> for (FileItem item : formItems){<br \/> \/\/ processes only fields that are common form fields<br \/> if (item.isFormField()){<br \/> bytes = item.getFieldName().getBytes(&#8220;ISO-8859-1&#8221;); \/\/ why 8859?<br \/> iname = new String(bytes, &#8220;UTF-8&#8221;);<br \/> bytes = item.getString().getBytes(&#8220;ISO-8859-1&#8221;);<br \/> ivalue = new String(bytes, &#8220;UTF-8&#8221;);<br \/> lastVal = request.getAttribute(iname);<br \/> if(lastVal != null){ <br \/> \/\/ checkbox or multiple select<br \/> if(lastVal instanceof String[]){<br \/> String[] tmpArr = (String[])lastVal;<br \/> String[] tmpArr2 = new String[tmpArr.length+1];<br \/> for(int si=0; si&lt;tmpArr.length; si++){<br \/> tmpArr2[si] = tmpArr[si];<br \/> }<br \/> tmpArr2[tmpArr.length] = ivalue;<br \/> request.setAttribute(iname, tmpArr2);<br \/> }<br \/> else{<br \/> String[] tmpArr = new String[2];<br \/> tmpArr[0] = String.valueOf(lastVal); tmpArr[1] = ivalue;<br \/> request.setAttribute(iname, tmpArr);<br \/> }<br \/> }<br \/> else{<br \/> request.setAttribute(iname, ivalue);<br \/> }<br \/> \/\/debug(&#8220;ctrl\/user: iname:&#8221;+iname+&#8221;, ivalue:&#8221;+ivalue+&#8221; lastVal:&#8221;+lastVal);<br \/> }<br \/> else{<br \/> debug(&#8220;ctrl\/user: not form field: iname:&#8221;+item.getFieldName()+&#8221;, ivalue:&#8221;+item.getString().length());<br \/> }<br \/> }<br \/> }\u00a0<\/p>\n<p>\u4f7f\u7528 lastVal\uff0c \u6765\u68c0\u6d4b\u662f\u5426\u540c\u4e00\u4e2akey\u7684\u952e\u503c\u88ab\u8d4b\u4e88\u591a\u4e2a\u8d4b\u503c\uff0c\u5982\u679c\u65f6\uff0c\u5c31\u542f\u7528\u4e00\u4e2a\u6570\u5217\u6765\u5b58\u50a8\u3002\u76f8\u5173\u4ee3\u7801\u5728 github\/wadelau\/GWA2\u00a0 \uff08\u00a0https:\/\/github.com\/wadelau\/GWA2 \uff09\u4e0a\u53ef\u4ee5\u83b7\u53d6\u3002<br \/>\u8be5\u5e94\u7528\u7684\u573a\u666f\u662f\u4e00\u4e2aForm\u4e2d\uff0c\u65e2\u6709\u591a\u9009\u6846\uff0c\u4e5f\u6709\u6587\u4ef6\u4e0a\u4f20\u3002<\/p>\n<p>\u5bf9\u5e94\u5730\uff0c\u6211\u4eec\u4e5f\u5728\u76f8\u5173GWA2 \u7684\u57fa\u7840\u8bbe\u65bd\u7ec4\u4ef6 comm\/Wht \u4e2d\u589e\u52a0\u4e86\u9488\u5bf9Form \u7684\u6570\u5217\u578b\u6570\u636e\u7684\u63a5\u6536\u5904\u7406\uff0c\u65b9\u6cd5\u540d\u4e3a<br \/> Wht.getArray(request, fieldName)<br \/>\u4ee5\u6b64\u6765\u63a5\u6536\u548c\u5904\u7406\u7c7b\u4f3c multi select\u548ccheck box\u7c7b\u578b\u7684\u8f93\u5165\u3002<\/p>\n<p><strong>9. \u591a\u6587\u4ef6\u540c\u65f6\u4e0a\u4f20\u7684\u4f18\u5316\u5904\u7406<\/strong><\/p>\n<p>\u9488\u5bf9\u670d\u52a1\u5668\u7aef\u63a5\u6536\u5904\u7406\u6587\u4ef6\u4e0a\u4f20\u7684\u76f8\u5173\u7ec4\u4ef6\uff0c\u5df2\u7ecf\u975e\u5e38\u6210\u719f\uff0c\u62ff\u6765\u7528\u5373\u53ef\u3002\u5982\u524d\u6240\u8ff0\uff0c\u6211\u4eec\u5728GWA2 Java\u4e2d\u5904\u7406\u6587\u4ef6\u7684\u6a21\u5757\u4e3b\u8981\u6765\u81ea Apache commons-fileupload-1.4.jar , \u4e00\u5e76\u7684\u4e5f\u8981\u5f15\u5165 Apache\u00a0commons-io-2.7.jar\u3002<\/p>\n<p>\u5728\u4e00\u4e9b\u7ec6\u8282\u4e0a\uff0c\u8fd8\u662f\u6709\u53ef\u6df1\u7a76\u7684\u5730\u65b9\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u901a\u8fc7 inc\/FileSystem \u4e2d\u7684\u4e00\u4e2a upload \u65b9\u6cd5\u6765\u5904\u7406\u8fd9\u4e9b\u7ec6\u8282\u3002\u9488\u5bf9 upload\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u9884\u671f\u7684\u6548\u679c\u662f\u7ed9\u5b9a\u4e00\u4e2a\u4e0a\u4f20\u7684 form\u5b57\u6bb5\u540d\u79f0\uff0c\u7136\u540e\u8fd4\u56de\u4e00\u4e2a\u4fdd\u5b58\u540e\u7684\u6587\u4ef6\u8def\u5f84\uff0c\u5f62\u5f0f\u5982\uff1a<br \/>formFieldA -&gt; filePathInDisk<\/p>\n<p>\u5982\u679c\u662f\u591a\u4e2a\u6587\u4ef6\u5462\uff1f\u4e4b\u524d\u7684\u65b9\u6cd5\u662f upload \u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4\uff0c\u5305\u62ec\u591a\u4e2a\u5730\u5740\uff0c\u76f8\u5f53\u4e8e\uff1a<br \/>[formFieldA, formFieldB] -&gt; [filePathInDisk, filePathInDisk]<\/p>\n<p>\u6b64\u65f6\u5904\u7406\u4e24\u4e2a\u4ee5\u4e0a\u7684\u6587\u4ef6\u4e0a\u4f20\u65f6\uff0c\u5b83\u662f\u80fd\u591f\u5b8c\u6210\u9884\u671f\u76ee\u6807\u7684\uff0c\u53ef\u662f\uff0c\u5982\u679c\u8981\u66f4\u65b0\u5176\u4e2d\u4e00\u4e2a\u6587\u4ef6\u65f6\uff0c\u5c31\u4f1a\u51fa\u9519\u3002\u7531\u4e8eForm\u5b57\u6bb5\u540d\u79f0\u5bf9\u5e94\u7684\u78c1\u76d8\u6587\u4ef6\u8def\u5f84\uff0c\u53ea\u6709\u987a\u5e8f\uff0c\u800c\u6ca1\u6709\u6700\u7ec8\u9884\u671f\u7684key\/value \u5f62\u5f0f\uff0c\u5f53\u4fee\u6539\u6216\u66f4\u65b0\u5176\u4e2d\u4e00\u4e2a\u6587\u4ef6\u65f6\uff0c\u603b\u662f\u8fd4\u56de\u5f62\u5f0f\u4e3a\uff1a<br \/>formFieldA -&gt; filePathInDisk<\/p>\n<p>\u8fd9\u4e0e\u53ea\u4e0a\u4f20\u4e00\u4e2a\u6587\u4ef6\u7684\u60c5\u5f62\u662f\u6ca1\u6cd5\u533a\u5206\u7684\u3002\u9700\u8981\u6539\u6b63\u3001\u4f18\u5316\u3002\u9884\u671f\u7684\u662f\u8fd4\u56de\u4e00\u4e2akey\/value\u5f62\u5f0f\u7684 formField\/diskFilePath \u3002<\/p>\n<p>\/\/ parses the request&#8217;s content to extract file data<br \/> @SuppressWarnings(&#8220;unchecked&#8221;)<br \/> List&lt;FileItem&gt; formItems = preFormItems; <br \/> if(formItems == null || formItems.size() ==0){<br \/> formItems = upload.parseRequest(request);<br \/> }<br \/> if (formItems != null &amp;&amp; formItems.size() &gt; 0){<br \/> \/\/ iterates over form&#8217;s fields<br \/> String fieldName, itemName, fileName, suffix, filePath;<br \/> File storeFile = null;<br \/> String showPath = UPLOAD_DIRECTORY + File.separator + relativePath;<br \/> if(!relativePath.endsWith(File.separator)){ showPath += File.separator; }<br \/> for (FileItem item : formItems){<br \/> \/\/ processes only fields that are not common form fields<br \/> if (!item.isFormField()){<br \/> fileName = &#8220;&#8221;;<br \/> fieldName = item.getFieldName(); itemName = item.getName();<br \/> if(itemName != null &amp;&amp; !itemName.equals(&#8220;&#8221;)){<br \/> suffix = &#8220;&#8221;;<br \/> if(itemName.lastIndexOf(&#8220;.&#8221;)&gt;0){<br \/> suffix = itemName.substring(itemName.lastIndexOf(&#8220;.&#8221;), itemName.length());<br \/> }<br \/> fileName = UUID.randomUUID().toString().replaceAll(&#8220;-&#8220;,&#8221;&#8221;) + suffix;<br \/> filePath = uploadPath + File.separator + fileName;<br \/> debug(Log_Tag+&#8221; upload: filePath:&#8221;+filePath+&#8221; itemName:&#8221;+itemName);<br \/> \/\/ saves the file on disk<br \/> storeFile = new File(filePath);<br \/> item.write(storeFile);<br \/> fileName = showPath + fileName;<br \/> }<br \/> else{<br \/> fileName = &#8220;&#8221;;<br \/> debug(Log_Tag+&#8221;upload: skip empty itemName.&#8221;+itemName);<br \/> }<br \/> hmResult.put(fieldName, fileName);<br \/> }<br \/> else{<br \/> \/\/debug(Log_Tag+&#8221; upload: form field item:&#8221;+item);<br \/> }<br \/> }<br \/> }<br \/> else{<br \/> debug(Log_Tag+&#8221; upload: formItems:&#8221;+formItems);<br \/> }<\/p>\n<p>\u65b0\u589e\u4e86 fieldName \u5b57\u6bb5\uff0c\u5728\u8fd4\u56de\u65f6\uff0c\u5c06 Form fieldName \u4e0e diskFilePath \u4ee5 key\/value \u5f62\u5f0f\u4e25\u683c\u5bf9\u5e94\u8d77\u6765\uff0c\u7531\u8fd4\u56de String \u540e\u8005 String\u6570\u7ec4\uff0c\u6539\u4e3a\u8fd4\u56de HashMap\u3002\u5982\u6b64\u4ee5\u6765\uff0c\u5219\u53ef\u4ee5\u89e3\u51b3\u540c\u65f6\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\uff0c\u800c\u4e0d\u4f9d\u8d56\u987a\u5e8f\u6765\u5bf9\u5e94\u6240\u4e0a\u4f20\u7684\u6587\u4ef6\uff0c\u540c\u65f6\uff0c\u5f53\u4fee\u6539\u65f6\uff0c\u4e5f\u53ef\u4ee5\u907f\u514d\u6240\u8df3\u8fc7\u7684\u6587\u4ef6\u4ea7\u751f\u7684\u987a\u5e8f\u5f02\u5e38\u3002\u5b8c\u6574\u529f\u80fd\u7684\u76f8\u5173\u4ee3\u7801\u5728 github\/wadelau\/GWA2\u00a0 \uff08\u00a0https:\/\/github.com\/wadelau\/GWA2 \uff09\u4e0a\u53ef\u4ee5\u83b7\u53d6\u3002<\/p>\n<p>\u7531\u4e8e\u65b9\u6cd5\u8fd4\u56de\u503c\u7684\u4fee\u6539\uff0c\u4e0d\u517c\u5bb9\u6b64\u524d\u7248\u672c\uff0c\u5efa\u8bae\u8001\u7248\u672c\u7684\u7528\u6237\u5347\u7ea7\u65f6\uff0c\u4f7f\u7528\u65b9\u6cd5\u91cd\u8f7d\u540e\u8005\u547d\u540d\u65b0\u65b9\u6cd5\u7684\u5f62\u5f0f\u5f15\u5165\u65b0\u529f\u80fd\u3002\u6bd4\u5982\uff0c\u5728\u6700\u8fd1\u7684\u9879\u76ee Boss\u9009\u5740 \uff08 bossxuanzhi.com ) \u4e2d\uff0c\u6211\u4eec\u5c31\u9762\u4e34\u8981\u4f7f\u7528\u547d\u540d\u65b0\u65b9\u6cd5\u6765\u517c\u5bb9\u524d\u671f\u4f7f\u7528\u65e7\u65b9\u6cd5\u7684 upload \u548c\u540e\u671f\u91c7\u7528\u65b0\u65b9\u6cd5\u7684 uploadMultiple \u3002<br \/>\u5982\u679c\u662f\u5728\u65b0\u9879\u76ee\u4e2d\uff0c\u5efa\u8bae\u76f4\u63a5\u4f7f\u7528\u5373\u53ef\uff0c\u6ca1\u6709\u5411\u524d\u517c\u5bb9\u7684\u9700\u6c42\u3002<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2020\/08\/gwa2-logo-202005.v3.png\" width=\"208\" height=\"208\" \/><\/p>\n<p><a href=\"https:\/\/ufqi.com\/dev\/gwa2\/\">-GWA2 \u5409\u5a03\u5154<\/a>\u00a0\u662f\u201d\u901a\u7528\u7f51\u7edc\u5e94\u7528\u67b6\u6784( General Web Application Architeture,\u00a0https:\/\/ufqi.com\/dev\/gwa2\/ )\u201d\uff0c\u57fa\u4e8e -GWA2 \u53ef\u4ee5\u8f7b\u4fbf\u6784\u5efa\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f,<br \/>\u5305\u62ec\u590d\u6742\u7684\u5728\u7ebf\u8d2d\u7269\u5546\u57ce\u3001\u5728\u7ebf\u533b\u7597\u3001\u5728\u7ebf\u6559\u80b2\u3001 \u65c5\u6e38\u4ea4\u6613\u5e73\u53f0\u3001\u793e\u7fa4\u6216\u8005\u793e\u4ea4\u7f51\u7ad9\u548c\u65b0\u95fb\u8d44\u8baf\u7f51\u7ad9\u7b49\uff0c<br \/>\u4e5f\u5305\u62ec\u5404\u79cd\u4f01\u4e8b\u4e1a\u5355\u4f4d\u7f51\u4e0a\u95e8\u6237\uff0c\u5728\u7ebf\u4ea4\u4e92\u53ca\u670d\u52a1\u4f5c\u4e1a\u7cfb\u7edf\u7b49.<br \/>\u8fd8\u53ef\u4ee5\u5305\u62ec\u4e3aNativeApp\u505a\u670d\u52a1\u5668\u7aef\u652f\u6301, \u751a\u81f3\u662fWebApp\u7684\u5168\u90e8.<br \/>-GWA2 \u662f\u4e3a\u6570\u4e0d\u591a\u7684\u652f\u6301\u8de8\u5f00\u53d1\u8bed\u8a00\u7684\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u524d\u652f\u6301 -Java, -PHP, -Perl, -Aspx and -Python .<\/p>\n<p>-GWA2 is a \u201cGeneral Web Application Architecture\u201d and based on -GWA2 developers can easily build a variety of network applications,<br \/>including complex online shopping malls, online medical services, online teaching, travel trading platforms, community or social networking sites and news information sites, etc.<br \/>Also the applications include various online portals of enterprises and institutions, online interaction and service operations systems.<br \/>Moreover it contains server-side support for Native App, or even all of the WebApp.<br \/>-GWA2 is one of the web frameworks which provide cross-language support for -Java, -PHP, -Perl, -Aspx and -Python at present.<\/p>\n<p><strong>-GWA2 is E.A.S.Y\u00a0<\/strong><br \/><b>Easy Along, Swift Yield<br \/><\/b>\u8f7b\u677e\u542f\u52a8, \u5feb\u901f\u4ea7\u51fa.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/10\/logo.png\" \/><\/p>\n<p><a href=\"http:\/\/bossxuanzhi.com\">Boss\u9009\u5740<\/a>\uff08 bossxuanzhi.com \uff09\u662f\u6c47\u6210\u4ea7\u4e1a\u670d\u52a1\uff08\u6c47\u6210\u4ea7\u670d\uff09\u63d0\u4f9b\u7684\u5728\u7ebf\u670d\u52a1\uff0c\u662f\u670d\u52a1\u653f\u5e9c\u6295\u878d\u8d44\u3001\u62db\u5546\u3001\u8fd0\u8425\u7684\u5e73\u53f0\u578b\u516c\u53f8. \u6c47\u6210\u4ea7\u670d\u516c\u53f8\u5b9a\u4f4d\uff1a\u4e00\u3001\u4e13\u4e1a\u7684\u653f\u5e9c\u62db\u5546\u4ee3\u7406\u670d\u52a1\u673a\u6784\uff0c\u4e8c\u3001\u4f01\u4e1a\u9009\u5740\u670d\u52a1\u673a\u6784\uff0c\u4e09\u3001\u4f01\u4e1a\u54a8\u8be2\u7ba1\u7406\u670d\u52a1\u5e73\u53f0\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>( https:\/\/ufqi.com\/blog\/gwa2-java-file-upload-issues-2nd\/ )<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53bb\u5e74\uff082020\u5e74\uff09\u79cb\u5929\u5199\u4e86\u4e0a\u4e00\u7bc7\uff1aGWA2\u5409\u5a03\u5154\ud83d\udc07Java\u4e2d\u7684\u6587\u4ef6\u4e0a\u50b3\u8868\u55ae\u8655\u7406\u82e5 &hellip; <a href=\"https:\/\/ufqi.com\/blog\/gwa2-java-file-upload-issues-2nd\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42,6,2],"tags":[379,86,146,152,438],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2629"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2629"}],"version-history":[{"count":8,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2629\/revisions"}],"predecessor-version":[{"id":2638,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2629\/revisions\/2638"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}