Archiver for Gmail is a script that will seamlessly analyze your inbox and move all the big attachments (by default > 3MB – but you can change this threshold) to your Google drive.

Get it in the Chrome web store: Gmail Archiver