drive_publish() fails for non-native file type

Error <rlang_error>
  Only native Google files can be published.
  `file` includes a file with non-native MIME type
  * 'foo_pdf-TEST-drive_publish': 'application/pdf'
  i You can use `drive_share()` to change a file's sharing permissions.

Try the googledrive package in your browser

Any scripts or data that you put into this service are public.

googledrive documentation built on July 8, 2021, 5:07 p.m.