We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using the following code to get the content of a text file uploaded (plain text with MimeType.JAVASCRIPT) to Google Drive.
let response = await gapi.client.drive.files.get({ 'fileId': "google-drive-file-id-goes-here", alt: 'media' }); let content = response.body;
It gets the actual content in Google Drive if the content only includes English (charset?) letters
See example below for the word Pharmacy in other languages and what the content is showing between ()
How to fix this issue using the gapi.client.drive.files.get() function?
Thanks in advance for your support on this Fausto
The text was updated successfully, but these errors were encountered:
There is what I would consider a bug in the /drive/v3/files/${fileID} endpoint that's hit when calling drive.files.get or drive.files.export in that the server is always returning a Content-Type of "text/plain;charset=UTF-8". This Stack Overflow answer, https://stackoverflow.com/a/63818644/1075909, explains how to work around this. Other related SO post, https://stackoverflow.com/questions/66799006/unwanted-content-type-text-plaincharset-utf-8-header-in-google-drive-api-res
drive.files.get
drive.files.export
Sorry, something went wrong.
No branches or pull requests
I am using the following code to get the content of a text file uploaded (plain text with MimeType.JAVASCRIPT) to Google Drive.
It gets the actual content in Google Drive if the content only includes English (charset?) letters
See example below for the word Pharmacy in other languages and what the content is showing between ()
How to fix this issue using the gapi.client.drive.files.get() function?
Thanks in advance for your support on this
Fausto
The text was updated successfully, but these errors were encountered: