I’m trying to upload a .docx
file to Google Drive and convert it to Google Docs** so that users can edit it within my web application. However, I’m running into issues with the conversion process.
What I’ve Tried:
1.Uploading the .docx file using the Drive API → The file uploads successfully but remains in .docx
format.
2. Attempting to convert it to Google Docs (application/vnd.google-apps.document
) → The API doesn’t seem to convert the file as expected.
Above is my Upload Api call. It only works with media as upload type as media. And in Google Docs the file doesn’t gets opened. But when downloaded it works first gives issue unreadable content but then works fine.
The main issue is the conversion the work document is not getting converted to type used by google docs