Home Technology Google Launches ‘Save to Drive’ Button to Save Files Directly To Drive

Google Launches ‘Save to Drive’ Button to Save Files Directly To Drive

Advertisement Disclosure: When you purchase through our sponsored links, we may earn a commission from our partners. By using this website you agree to our T&Cs.

Google has launched the all new Save to Drive button for Google Drive users. This button can be added on your site, and you can start saving files from sites that have already implemented this button.

The best part of this new offering from Google is that implementing this button is a piece of cake for anyone. You just need to add two lines of HTML code to your site, and voila, you’ll be able to see the Drive button. For Google Drive users, this means that they can save files to their account by just a click.

gdrive

To add the button to your website, simply add the script as well as the HTML tag, as shown below:

<script src=”http://apis.google.com/js/plusone.js”></script>
<div
data-filename=”My Statement.pdf”
data-sitename=”My Company Name”
data-src=”/path/to/myfile.pdf”>
</div>

You can also use the Save to Drive button’s JavaScript API, which gives more “programmatic and flexible control” to the button.

“The Save to Drive button works in the context of the user’s browser. This allows your users to save files that could require some form of HTTP authorization – such as a session cookie – without any special customization from you.”

To learn more, you can view the technical documentation from here. Google has also advised users to post their questions on Stack overflow.

It seems like Google wants us to use the Google Drive often. This Save to Drive button is useful not just for the webmasters but also for users (or site visitors). With this button, there’s no need to right-click on the content and then select a place to save the file to the computer. Just a click and the file will be saved to the logged-in user’s Google Drive account.

sgd

Google says that the Save to Drive button is supported on the same browsers as Google Drive on the web. It supports the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer (IE9 and IE10)

Go ahead, try out this new Save to Drive button and let us know your opinion on it.

Our Editorial Standards

At ValueWalk, we’re committed to providing accurate, research-backed information. Our editors go above and beyond to ensure our content is trustworthy and transparent.

Saqib Khan
Editor

Want Financial Guidance Sent Straight to You?

  • Pop your email in the box, and you'll receive bi-weekly emails from ValueWalk.
  • We never send spam — only the latest financial news and guides to help you take charge of your financial future.