Tuesday, May 14, 2013

An easier way to save files to Google Drive

Inline image 3 Inline image 2

We surf the web for a million different reasons – for everything from school research projects to time-killing memes. And when we find something relevant for us, whether that be our most recent pay stub or just an adorably awesome pic, we may want to save it for later reference or to share with friends in the future.

Starting today, Drive users can use the "Save to Drive" button to do exactly that. The "Save to Drive" button is an easier way to save files directly from a website. If you have your own website, you can improve the experience for your site visitors by adding the "Save to Drive" button to your page using two easy lines of HTML. 

...
...

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 class="g-savetodrive"
 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 allows programmatic and flexible control of the creation of Save to Drive buttons in your web pages.

QR: Inline image 1