{"id":4452,"date":"2019-08-20T02:17:50","date_gmt":"2019-08-19T17:17:50","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=4452"},"modified":"2019-08-20T02:17:50","modified_gmt":"2019-08-19T17:17:50","slug":"ajax%e3%81%ae%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%a7%e3%83%97%e3%83%ad%e3%82%b0%e3%83%ac%e3%82%b9%e3%83%90%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%82%b5","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=4452","title":{"rendered":"Ajax\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u30b5\u30f3\u30d7\u30eb\uff08DL\u53ef\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u304a\u304b\u3052\u3055\u307e\u3067\u524d\u56de\u306e\u8a18\u4e8b\u3067\u30c8\u30fc\u30bf\u30eb200\u8a18\u4e8b\u3068\u3044\u3046\u7bc0\u76ee\u306b\u306a\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u3001\u305d\u3046\u306a\u308b\u3068\u904e\u53bb\u306e\u8a18\u4e8b\u306a\u3069\u3092\u898b\u8fd4\u3057\u3066\u304a\u3053\u3046\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u7d50\u679c\u3001\u300c\u6614\u306f\u3082\u3063\u3068\u6839\u672c\u7684\u306a\u5185\u5bb9\u3092\u8a18\u4e8b\u306b\u3057\u3066\u305f\u3093\u3060\u306a\u301c\u300d\u3068\u611f\u3058\u305f\u306e\u3067\u3001\u305f\u307e\u306b\u306f\u3053\u308c\u304b\u3089\u306e\u672a\u6765\u3092\u62c5\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u521d\u5fc3\u8005\u306e\u65b9\u306b\u3082\u5411\u3051\u3066\u8a18\u4e8b\u3092\u66f8\u3051\u305f\u3089\u3068\u3044\u3046\u6c17\u6301\u3061\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u73fe\u4ee3\u306e\u30a6\u30a7\u30d6\u958b\u767a\u3067\u306f\u5fc5\u9808\u3068\u8a00\u3063\u3066\u3082\u3044\u3044Ajax\u95a2\u9023\u306e\u5185\u5bb9\u3092\u304a\u5c4a\u3051\u3057\u307e\u3059\u3002<\/p>\n<p>\u958b\u767a\u3059\u308b\u6a5f\u80fd\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u6642\u306b\u3001\u3069\u308c\u3060\u3051\u5b8c\u4e86\u3057\u3066\u3044\u308b\u304b\u3092\u8868\u793a\u3059\u308b<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u52d5\u753b\u306a\u3069\u5927\u5bb9\u91cf\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3068\u304d\u306b\u4f55\u3082\u8868\u793a\u304c\u306a\u3044\u3068<strong>\u300c\u3042\u308c\uff1f\u3053\u308c\u3063\u3066\u307e\u3060\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d\u306a\u306e\uff1f\u305d\u308c\u3068\u3082\u30a8\u30e9\u30fc\u3067\u6b62\u307e\u3063\u3066\u308b\u3093\u3058\u3083\u306a\u3044\u306e\uff01\uff1f\u300d<\/strong>\u3068\u30e6\u30fc\u30b6\u30fc\u304c\u8ff7\u3063\u3066\u3057\u307e\u3046\u306e\u3092\u9632\u3050\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002\uff08\u6700\u5f8c\u3067\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\ud83d\ude0a\u2728\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3405 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png\" alt=\"\" width=\"310\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png 310w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18-291x300.png 291w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1a axios 0.19\u3001Vue 2.6\u3001Bootstrap 4.3.1\uff08CSS\u306e\u307f\uff09<\/p>\n<h1>\u307e\u305a\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>Ajax\uff08axios\uff09\u3092\u4f7f\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5148\u306bURL\u304c\u306a\u3044\u306a\u3069\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3068\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u3042\u306a\u305f\u306e\u30b5\u30a4\u30c8\u306e<code>http(s):\/\/*******\/progress<\/code>\u306bPOST\u9001\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Laravel\u3092\u4f7f\u3063\u305f\u5834\u5408\u3067\u3059\u3068\u3001<code>routes\/web.php<\/code>\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30eb\u30fc\u30c8\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>Route::post('progress', 'HomeController@progress');<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001<code>HomeController<\/code>\u5185\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>public function progress(Request $request) {<\/strong>\r\n\r\n<strong>    \/\/ \u3053\u3053\u3067\u9001\u4fe1\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<p>\u306a\u304a\u3001\u4eca\u56de\u306f\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u304b\u3069\u3046\u304b\u306e\u5024\u3092\u8fd4\u3059\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff08200HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c\u8fd4\u3063\u3066\u304f\u308c\u3070\u6210\u529f\u3057\u305f\u3068\u3044\u3046\u5224\u65ad\u306b\u306a\u308a\u307e\u3059\uff09<\/p>\n<h1>\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u306b\u3064\u3044\u3066<\/h1>\n<p>\u4eca\u56de\u306f<code>Bootstrap<\/code>\u306e\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u4f7f\u3063\u3066\u3082\u826f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f<code>HTML5<\/code>\u306b\u306f<code>&lt;progress&gt;&lt;\/progress&gt;<\/code>\u3068\u3044\u3046\u65b0\u3057\u3044\u30bf\u30b0\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u4eca\u56de\u306f\u3053\u306e<code>progress<\/code>\u30bf\u30b0\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n<span style=\"font-size: 1rem;\">\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<pre><strong>&lt;progress value=\"35\" max=\"100\"&gt;&lt;\/progress&gt;<\/strong><\/pre>\n<p><code>Google Chrome<\/code>\u3067\u8868\u793a\u3059\u308b\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u2193\u2193\u2193<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4458\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/ajax_progress_1.png\" alt=\"\" width=\"205\" height=\"55\" \/><\/p>\n<h1>\u5b9f\u969b\u306e\u30b3\u30fc\u30c9<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<br \/>\n\u30b3\u30d4\u30da\u3059\u308b\u3060\u3051\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b<code>CDN<\/code>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3082\u3057\u5fc5\u8981\u3067\u3057\u305f\u3089<code>npm<\/code>\u306a\u3069\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u5b9f\u88c5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u4ee5\u4e0b\u306e\uff13\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>Bootstrap\u3000\u30fb\u30fb\u30fb\u3000CSS\u306e\u307f<\/li>\n<li>axios\u3000\u30fb\u30fb\u30fb\u3000Ajax\u901a\u4fe1\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<\/li>\n<li>Vue\u3000\u30fb\u30fb\u30fb\u3000JavaScript\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/li>\n<\/ul>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    <strong>&lt;link href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.3.1\/css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;<\/strong>\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;div id=\"app\" class=\"container\"&gt;\r\n        &lt;div class=\"row\"&gt;\r\n            &lt;div class=\"col-12\"&gt;\r\n                &lt;h1 style=\"margin: 30px 0;\"&gt;Ajax\u9001\u4fe1\u6642\u306b\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u30b5\u30f3\u30d7\u30eb&lt;\/h1&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"row\" <strong>v-if=\"!uploading\"<\/strong>&gt;\r\n            &lt;div class=\"col-6\"&gt;\r\n                &lt;input type=\"file\" <strong>@change=\"onSelectFile\"<\/strong>&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"col-6\"&gt;\r\n                &lt;button type=\"button\" class=\"btn btn-outline-primary\" <strong>@click=\"onSubmit\"<\/strong>&gt;\u9001\u4fe1&lt;\/button&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"row\" <strong>v-else<\/strong>&gt;\r\n            &lt;div class=\"col-12 text-center\"&gt;\r\n                &lt;!-- \u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\uff08HTML5\uff09 --&gt;\r\n                <strong>&lt;progress ref=\"progress\" value=\"0\" max=\"100\"&gt;&lt;\/progress&gt;<\/strong>\r\n                &lt;br&gt;\r\n                &lt;span class=\"text-muted\"&gt;\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d...&lt;\/span&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n    &lt;!-- Vue --&gt;\r\n    <strong>&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/vue@2.6.0\"&gt;&lt;\/script&gt;<\/strong>\r\n    &lt;!-- axios --&gt;\r\n    <strong>&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.19.0\/axios.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n    &lt;script&gt;\r\n\r\n        new Vue({\r\n            el: '#app',\r\n            data: {\r\n                file: null,\r\n                uploading: false\r\n            },\r\n            methods: {\r\n                <strong>onSubmit() {<\/strong>\r\n\r\n<strong>                    const url = '\/progress';<\/strong>\r\n<strong>                    let formData = new FormData();<\/strong>\r\n<strong>                    formData.append('file', this.file);<\/strong>\r\n\r\n<strong>                    if(this.file === null) {<\/strong>\r\n\r\n<strong>                        alert('\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044');<\/strong>\r\n<strong>                        return;<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                    this.uploading = true;<\/strong>\r\n\r\n<strong>                    axios.post(url, formData, { onUploadProgress: this.onUpload })<\/strong>\r\n<strong>                        .then((response) =&gt; {<\/strong>\r\n\r\n<strong>                            \/\/ \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5b8c\u4e86<\/strong>\r\n<strong>                            alert('\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01');<\/strong>\r\n\r\n<strong>                        })<\/strong>\r\n<strong>                        .catch((error) =&gt; {<\/strong>\r\n\r\n<strong>                            \/\/ \u30a8\u30e9\u30fc\u304c\u767a\u751f<\/strong>\r\n\r\n<strong>                        })<\/strong>\r\n<strong>                        .then(() =&gt; {<\/strong>\r\n\r\n<strong>                            this.$refs.progress.value = 0;  \/\/ \u30d7\u30ed\u30b0\u30ec\u30b9\u3092\u30af\u30ea\u30a2<\/strong>\r\n<strong>                            this.uploading = false;<\/strong>\r\n\r\n<strong>                        });<\/strong>\r\n\r\n<strong>                }<\/strong>,\r\n                <strong>onSelectFile(e) {    \/\/\u3000\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u6642\r\n\r\n                    const files = e.target.files;\r\n\r\n                    if(files.length === 0) {    \/\/ \u30d5\u30a1\u30a4\u30eb\u9078\u629e\u304c\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u305f\u6642\r\n<\/strong>\r\n<strong>                        this.file = null;\r\n                        return;\r\n\r\n                    }\r\n\r\n                    this.file = files[0];\r\n\r\n                },<\/strong>\r\n                <strong>onUpload(e) {<\/strong>\r\n\r\n<strong>                    \/\/ \u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u8a08\u7b97\u3057\u3066\u5909\u66f4<\/strong>\r\n<strong>                    this.$refs.progress.value = Math.floor((e.loaded * 100) \/ e.total);<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n            }\r\n        });\r\n\r\n    &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3067\u306f\u3001\u91cd\u8981\u306a\u90e8\u5206\u3092\u3072\u3068\u3064\u305a\u3064\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u5404\u7a2e\u30e1\u30bd\u30c3\u30c9<\/h2>\n<h3>onSelectFile()<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30bf\u30b0\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u9078\u629e\u3055\u308c\u308b\u3068\u5b9f\u884c\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<pre><strong>&lt;input type=\"file\" @change=\"onSelectFile\"&gt;<\/strong><\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<code>e<\/code>\u306e\u4e2d\u304b\u3089\u9078\u629e\u3055\u308c\u305f\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u3001\u4e00\u756a\u306f\u3058\u3081\u306e\u3082\u306e\uff08\u3064\u307e\u308a<code>files[0]<\/code>\uff09\u3092Vue\u306e\u5909\u6570<code>file<\/code>\u306b\u683c\u7d0d\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u305c\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u60f3\u5b9a\u3057\u305f\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u5143\u3005\u306e\u4ed5\u69d8\u306a\u306e\u3067\u3059\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u8907\u6570\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3001\u3069\u3061\u3089\u306e\u5834\u5408\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3060\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;!-- \u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3067\u304d\u308b --&gt;\r\n&lt;input type=\"file\" @change=\"onSelectFile\" multiple&gt;<\/strong><\/pre>\n<p>\u307e\u305f\u3001\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u304c\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u305f\u3068\u304d\u306f\u5fc5\u305a\u521d\u671f\u5024\u306e<code>null<\/code>\u3092\u5909\u6570<code>file<\/code>\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u307e\u305a\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3001\u518d\u5ea6\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3088\u3046\u3068\u3057\u305f\u304c\u3084\u3063\u3071\u308a\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u305f\u5834\u5408\u306e\u3053\u3068\u3082\u60f3\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002\uff08\u3064\u307e\u308a\u3053\u3053\u304c\u306a\u3044\u3068\u3001\u6700\u521d\u306b\u9078\u629e\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u9001\u4fe1\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\uff09<\/p>\n<pre><strong>if(files.length === 0) {<\/strong>    \/\/ \u30d5\u30a1\u30a4\u30eb\u9078\u629e\u304c\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u305f\u6642\r\n\r\n<strong>    this.file = null;<\/strong>\r\n<strong>    return;<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<h3>onSubmit()<\/h3>\n<p><strong>\u300c\u9001\u4fe1\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p><code>Ajax<\/code>\u306f\u6709\u540d\u30d1\u30c3\u30b1\u30fc\u30b8<code>axios<\/code>\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3057\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f<strong>\u9078\u629e\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u9001\u4fe1\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u306f\u8ffd\u52a0\u3067\u304d\u306a\u3044<\/strong>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u3067\u3059\u3068<code>axios<\/code>\u3067\u30c7\u30fc\u30bf\u9001\u4fe1\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u3057\u307e\u3044\u305d\u3046\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306f<strong>\u9593\u9055\u3063\u305f\u4f8b\u3067\u3059<\/strong>\u3002<\/p>\n<pre>\/\/ \u3010\u6ce8\u610f\u3011\u3053\u308c\u306f\u9593\u9055\u3063\u305f\u4f8b\uff01\r\n\r\n<strong>const params = {<\/strong>\r\n<strong>    file: this.file<\/strong>\r\n<strong>};<\/strong>\r\naxios.post(url, params)<\/pre>\n<p>\u203b \u5b9f\u969b\u306b\u306f\u9001\u4fe1\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u60f3\u5b9a\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u304c\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u308f\u3056\u308f\u3056\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>FormData<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u306f\u305d\u306e\u305f\u3081\u3067\u3059\u3002<\/p>\n<pre>\/\/ \u3053\u308c\u306f\u6b63\u3057\u3044\u4f8b\u266a<strong>\r\n\r\nlet formData = new FormData();<\/strong>\r\n<strong>formData.append('file', this.file);<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\naxios.post(url, <strong>formData<\/strong>, \/* \u7701\u7565 *\/)<\/pre>\n<p>\u306a\u304a\u3001PHP\uff08nginx\uff09\u306b\u5927\u5bb9\u91cf\u30d5\u30a1\u30a4\u30eb\u3092\u9001\u4fe1\u3057\u3088\u3046\u3068\u3057\u3066\u3001<code>413 Request Entity Too Large<\/code>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u8fd4\u3063\u3066\u304d\u305f\u5834\u5408\u306f\u3001<code>PHP<\/code>\u3082\u3057\u304f\u306f<code>nginx<\/code>\u304c\u8a31\u53ef\u3057\u3066\u3044\u308b\u5236\u9650\u3092\u8d85\u3048\u305f\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3060\u3063\u305f\u3053\u3068\u304c\u539f\u56e0\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306eURL\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=256\">\u30c1\u30a7\u30c3\u30af\u306f\uff13\u30f5\u6240\uff01 413 Request Entity Too Large\u304c\u8868\u793a\u3055\u308c\u305f\u6642\u306e\u5bfe\u51e6\u6cd5<\/a><\/p>\n<p>\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u90e8\u5206\u306f\u30d5\u30a1\u30a4\u30eb\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u306b\u9001\u4fe1\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>if(this.file === null) {<\/strong>\r\n\r\n<strong>    alert('\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044');<\/strong>\r\n<strong>    return;<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<h3>onUpload()<\/h3>\n<p>\u3053\u3053\u304c\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d\u306b\uff08\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306b\u3088\u3063\u3066\u306f\u4f55\u5ea6\u3082\uff09\u547c\u3070\u308c\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u4e2d\u8eab\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<code>e<\/code>\u304b\u3089\u4ee5\u4e0b\uff12\u3064\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u3092\u5143\u306b\u3057\u3066\u3069\u308c\u3060\u3051\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u304b\u3092\u8a08\u7b97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>e.loaded\u3000\u30fb\u30fb\u30fb\u3000\u9001\u4fe1\u6e08\u307f\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba<\/li>\n<li>e.total\u3000\u30fb\u30fb\u30fb\u3000\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001<code>this.$refs.progress.value<\/code>\u3067\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u306e\u5024\u3092\u5909\u66f4\u3067\u304d\u308b\u306e\u306f\u3001\u30bf\u30b0\u306b<code>ref<\/code>\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3001\u3053\u308c\u306f<code>Vue<\/code>\u304c\u63d0\u4f9b\u3059\u308b\u6a5f\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;progress <strong>ref=\"progress\"<\/strong> value=\"0\" max=\"100\"&gt;&lt;\/progress&gt;<\/pre>\n<h2>\u8868\u793a\u306e\u5207\u308a\u66ff\u3048\u90e8\u5206\uff08Vue\uff09<\/h2>\n<p>\u3053\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3067\u306f\u3001\u306f\u3058\u3081\u306f\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u3068\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u30d5\u30a1\u30a4\u30eb\u304c\u9078\u629e\u3055\u308c\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u8868\u793a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff08\u9006\u306b\u8a00\u3046\u3068\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d\u306b\u518d\u5ea6\u540c\u3058\u52d5\u4f5c\u3092\u3055\u308c\u308b\u3068\u3081\u3093\u3069\u3046\u3067\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4459\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/ajax_progress_2.png\" alt=\"\" width=\"467\" height=\"77\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/ajax_progress_2.png 467w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/ajax_progress_2-300x49.png 300w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u6642\u70b9\u3067\u3053\u306e\u8868\u793a\u3092\u6d88\u3057\u3001\u8a18\u4e8b\u306e\u5192\u982d\u3067\u7d39\u4ecb\u3057\u305f<code>HTML5<\/code>\u306e\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u90e8\u5206\u306f<code>Vue<\/code>\u3092\u4f7f\u3063\u3066\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u5207\u308a\u66ff\u3048\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a72\u5f53\u3059\u308b\u5834\u6240\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n<pre>&lt;div class=\"row\" <strong>v-if=\"!uploading\"<\/strong>&gt;\r\n    &lt;div class=\"col-6\"&gt;\r\n        &lt;input type=\"file\" @change=\"onSelectFile\"&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div class=\"col-6\"&gt;\r\n        &lt;button type=\"button\" class=\"btn btn-outline-primary\" @click=\"onSubmit\"&gt;\u9001\u4fe1&lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"row\" <strong>v-else<\/strong>&gt;\r\n    &lt;div class=\"col-12 text-center\"&gt;\r\n        &lt;!-- \u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\uff08HTML5\uff09 --&gt;\r\n        &lt;progress ref=\"progress\" value=\"0\" max=\"100\"&gt;&lt;\/progress&gt;\r\n        &lt;br&gt;\r\n        &lt;span class=\"text-muted\"&gt;\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d...&lt;\/span&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\u305d\u3057\u3066\u3001\u91cd\u8981\u3068\u306a\u308b\u306e\u306f<code>v-if<\/code>\u3068<code>v-else<\/code>\u306e\u90e8\u5206\u3067\u3001\u610f\u5473\u3068\u3057\u3066\u306f\u4ee5\u4e0b\u306e\uff12\u70b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5909\u6570\u300cuploading\u300d\u304c\u300cfalse\u300d\u306e\u5834\u5408\u306f\u3001\u4e0a\u306e\u30d6\u30ed\u30c3\u30af\uff08\u30d5\u30a1\u30a4\u30eb\u9078\u629e\uff0b\u30dc\u30bf\u30f3\uff09\u3092\u8868\u793a<\/li>\n<li>\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001\u4e0b\u306e\u30d6\u30ed\u30c3\u30af\uff08\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\uff09\u3092\u8868\u793a<\/li>\n<\/ul>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u4eca\u56de\u306f\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u524d\u56de\u30d6\u30ed\u30b0\u304c\u7bc0\u76ee\u3060\u3063\u305f\u3053\u3068\u3082\u3042\u308a\u3001YouTube\u306b<a href=\"https:\/\/www.youtube.com\/channel\/UCo1WUyvrV050BFLYrBnnbhA\" target=\"_blank\" rel=\"noopener noreferrer\">\u5c02\u7528\u306e\u30c1\u30e3\u30f3\u30cd\u30eb<\/a>\u3092\u4f5c\u308a\u307e\u3057\u305f\u306e\u3067\u4eca\u5f8c\u306f\u3053\u3061\u3089\u3082\u305c\u3072\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u30d6\u30ed\u30b0\u306b\u95a2\u3059\u308b\u52d5\u753b\u3057\u304b\u6295\u7a3f\u3059\u308b\u3064\u3082\u308a\u306f\u306a\u3044\u3067\u3059\u304c\u30fb\u30fb\u30fb\ud83d\ude02\uff09<\/p>\n<p><iframe loading=\"lazy\" title=\"Ajax\uff08axios\uff09\u3067\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u5909\u66f4\u30fb\u8868\u793a\u3059\u308b\u30b5\u30f3\u30d7\u30eb\" width=\"525\" height=\"295\" src=\"https:\/\/www.youtube.com\/embed\/W_GayjRgrYc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>\u306f\u3044\uff01<br \/>\n\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002<\/p>\n<h1>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<code>CDN<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5c55\u958b\u3057\u3066HTML\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u304f\u3060\u3051\u3067\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3088\uff01<\/p>\n<p>\u203b \u305f\u3060\u3057\u3001HTTP(S)\u63a5\u7d9a\u3067\u3001\u306a\u304a\u304b\u3064<code>http(s):\/\/******\/progress<\/code>\u3078POST\u9001\u4fe1\u3067\u304d\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=4460&amp;tmstv=1777528598\" rel=\"nofollow\" id=\"download-link-4460\" data-redirect=\"false\" >\n\tAjax\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u30b5\u30f3\u30d7\u30eb<\/a>\n\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u79c1\u3082\u521d\u5fc3\u3092\u5fd8\u308c\u306a\u3044\u610f\u5473\u3082\u8fbc\u3081\u3066\u6700\u8fd1\u306e\u8a18\u4e8b\u3068\u6bd4\u3079\u308b\u3068\u3001\u3068\u3066\u3082\u57fa\u672c\u7684\u306a\u5185\u5bb9\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u4eca\u56de\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u307f\u3066\u611f\u3058\u305f\u306e\u306f<strong>\u300c\u3084\u3063\u3071\u308a\u30d7\u30ed\u30b0\u30e9\u30e0\u3063\u3066\u9762\u767d\u3044\uff01\u300d<\/strong>\u3063\u3066\u3053\u3068\u3067\u3057\u305f\u3002\u79c1\u306e\u5834\u5408\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u57fa\u672c\u3067\u3042\u308d\u3046\u304c\u5fdc\u7528\u3067\u3042\u308d\u3046\u304c\u3053\u306e\u307e\u307e\u305a\u3063\u3068\u597d\u304d\u3067\u3044\u3089\u308c\u305d\u3046\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p>\u7686\u3055\u3093\u3082\u305c\u3072\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u597d\u304d\u3067\u3044\u3089\u308c\u308b\u5de5\u592b\u3092\u3057\u3066\u3001\u672b\u6c38\u304f\u4ed8\u304d\u5408\u3063\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3467 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/>\u300c\u305d\u306e\u3046\u3061\u59ea\u3063\u5b50\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u8208\u5473\u3082\u305f\u306a\u3044\u304b\u306a\u30fc\uff08\u305d\u3093\u306a\u7d20\u632f\u308a\u30bc\u30f3\u30bc\u30f3\u306a\u3044\u3051\u3069\u30fb\u30fb\u30fb\ud83d\ude02\uff09\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u304a\u304b\u3052\u3055\u307e\u3067\u524d\u56de\u306e\u8a18\u4e8b\u3067\u30c8\u30fc\u30bf\u30eb200\u8a18\u4e8b\u3068\u3044\u3046\u7bc0\u76ee\u306b\u306a\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u3001\u305d\u3046\u306a\u308b\u3068\u904e\u53bb\u306e\u8a18\u4e8b\u306a\u3069\u3092\u898b\u8fd4\u3057\u3066\u304a\u3053\u3046\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u305d\u306e\u7d50\u679c\u3001\u300c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=4452\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Ajax\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u30b5\u30f3\u30d7\u30eb\uff08DL\u53ef\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":4456,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,12,97],"tags":[35,137],"class_list":["post-4452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-vue-js","category-97","tag-ajax","tag-137"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4452"}],"version-history":[{"count":5,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4452\/revisions"}],"predecessor-version":[{"id":4465,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4452\/revisions\/4465"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/4456"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}