Skip to main content

New ‘Save to Drive’ code makes it easy for website owners to deliver media to readers’ Google Drive accounts

Google just announced a nice bit of API code that will allow developers to to make it easy for readers of websites to download files to their Google Drive account.

Adding a Save to Drive button on your website is easy. You simply have to include the script and HTML tag below:

<script src="https://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>

It isn’t hard to see how this could come in handy.

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Google — experts who break news about Google and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Google on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications