Sharing files with Google Drive can be very convenient, but the link that google generates, something like this:

will just open the file for preview with the browser. To generate a link for download, use this link format instead:

And change the part after id= to match the link that Google provides.

Similarly you can do the same thing for Dropbox, just add ?dl=1 to the end of the url that Dropbox provide.