title: Downloading files from Drive using alt=media with correct filename
body: <p>I'm having trouble allowing files (non-shared) to be downloaded from a Google Drive account. I've created a listing using the php drive sdk and would like to provide authorised links to download the files using a generated access token. I've got downloads working with links like this: </p>
  
  <p><a href="https://www.googleapis.com/drive/v3/files/" rel="nofollow">https://www.googleapis.com/drive/v3/files/</a><em>[fileid]</em>?alt=media&amp;access_token=<em>[access_token]</em></p>
  
  <p>The problem is that whenever a file is downloaded, it is named [fileid].[extension], rather than the real file name that appears in Drive.</p>
  
  <p>I've tried adding the download="[real filename]" into the a link to suggest the correct filename, but it's being ignored in all the browsers I've tried.</p>
  
  <p>I've got an alternative working that gets the file piece by piece server side and echoes it out as a file via php, but I'd prefer for downloads to be straight from Drive to the user.</p>