You can download the script from this article at Labnol.org; once installed it creates a new label in Gmail and in Drive, then automatically checks any email with the new label and when attachment is detected is send it to Drive. To have this function in your account, you need to install the script. It is pretty simple just follow these steps:

Now, how awesome it is when you are viewing an attachment in your mobile device and knowing that the file is already sitting on all the devices that you configured the cloud-storage service without you having to do anything? Source Digital Inspiration via TheVerge All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.