title: Google Drive Save to Drive Button
body: <p>So I'm learning the Google drive API and learning how to embed a Save to Drive button in a webpage. I have WAMP installed and I'm typing in the address bar the following: localhost/gdrive.html</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
      &lt;script src="https://apis.google.com/js/platform.js"&gt;&lt;/script&gt;
          &lt;div class="g-savetodrive"
               data-src="http://localhost/test.txt"
               data-filename="test.txt"
               data-sitename="Test document"&gt;
          &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The gdrive.html should save a file called test.txt to my google drive(test.txt is in the www folder of the WAMP server). However when I sign in and hit the Save button, it doesn't work. It just takes forever(the Google drive loading icon in image below). It doesn't actually save to my Google Drive. This is my first time learning Google Drive's API and is there a reason why this is happening(is it because of localhost.</p>
  
  <p><img src="https://i.stack.imgur.com/Wfbn9.png" alt=""></p>