title: Change Mime Type of Uploaded PDFs in Google Drive
body: <p>I have a number of PDFs that have been uploaded to Google Drive manually. Most were appropriately recognized as PDFs and the mime types were set accordingly. A few were not. This appears to be an issue with FireFox. </p>
  
  <p>I can download/re-upload (in Chrome) and they get recognized as PDFs so the issue isn't with the file itself. I realize I can do that manually but I'm looking for a way to fix this automatically via a script. </p>
  
  <p><code>file.getMimeType</code> for the failing files returns <code>application/download</code> rather than <code>application/pdf</code></p>
  
  <p>I'd like to change the mime type for these files to <code>application/pdf</code> via Google Script but I can't find a method to do that. I've looked through the Drive App methods for files but can't find a way to do it.</p>
  
  <p><code>setMimeType</code> doesn't seem to be an option for files like it is for blobs. </p>