<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Axios Archives - Codeplaners</title>
	<atom:link href="https://codeplaners.com/tag/axios/feed/" rel="self" type="application/rss+xml" />
	<link>https://codeplaners.com/tag/axios/</link>
	<description>Code Solution</description>
	<lastBuildDate>Thu, 20 Jan 2022 09:47:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>

<image>
	<url>https://codeplaners.com/wp-content/uploads/2020/09/cropped-favicon-social-32x32.png</url>
	<title>Axios Archives - Codeplaners</title>
	<link>https://codeplaners.com/tag/axios/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Download File using Axios In Vue JS</title>
		<link>https://codeplaners.com/download-file-using-axios-in-vue-js/</link>
					<comments>https://codeplaners.com/download-file-using-axios-in-vue-js/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 20 Jan 2022 09:47:54 +0000</pubDate>
				<category><![CDATA[Vue Js]]></category>
		<category><![CDATA[Axios]]></category>
		<category><![CDATA[vue js]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1390</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you download file using axios in vue js. This article will give you simple example of download file using axios in vue js. you will download file using axios in vue js. In this article, we will implement a download file using axios in vue js. So let’s &#8230; <a href="https://codeplaners.com/download-file-using-axios-in-vue-js/" class="more-link">Continue reading<span class="screen-reader-text"> "Download File using Axios In Vue JS"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/download-file-using-axios-in-vue-js/">Download File using Axios In Vue JS</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you download file using axios in vue js. This article will give you simple example of download file using axios in vue js. you will download file using axios in vue js. In this article, we will implement a download file using axios in vue js. </p>
<p>So let’s follow few step to create example of download file using axios in vue js.</p>
<h3 class="step_code">Example</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Download File using Axios In Vue JS &lt;/title&gt;
    &lt;script src=&quot;https://cdn.jsdelivr.net/npm/vue&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.min.js&quot; &gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;app&quot;&gt;
  &lt;button @click=&quot;onClick()&quot;&gt;DownLoad&lt;/button&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
   
    var app = new Vue({
      el: '#app',
      methods: {
          onClick() {
            axios({
                  url: 'http://localhost:8000/my.pdf',
                  method: 'GET',
                  responseType: 'blob',
              }).then((response) =&gt; {
                   var fileURL = window.URL.createObjectURL(new Blob(&#x5B;response.data]));
                   var fileLink = document.createElement('a');

                   fileLink.href = fileURL;
                   fileLink.setAttribute('download', 'file.pdf');
                   document.body.appendChild(fileLink);

                   fileLink.click();
              });
          }
      }
    })
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/download-file-using-axios-in-vue-js/">Download File using Axios In Vue JS</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/download-file-using-axios-in-vue-js/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
