Hi, I’m using Google File Search and overall it works quite well. However, I’m running into an issue when trying to upload Word and Excel files.
According to your documentation (referenced here: https://ai.google.dev/gemini-api/docs/file-search#supported-files), .doc, .docx, .xls, and .xlsx should be supported. But when I try to upload them, I get errors like:
Error uploading 'Viet/15. pham vi cung cap (ok).doc': Unknown mime type: Could not determine the mimetype for your file
please set the `mime_type` argument
Error uploading 'Viet/15. pham vi cung cap (ok).doc': 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': "* UploadToFileSearchStoreRequest.mime_type: When provided, MIME type must be in a valid type/subtype format (e.g., 'text/plain', 'application/pdf').\n", 'status': 'INVALID_ARGUMENT'}}
I also tried omitting the mime_type field, but it still fails with the same error.
Could you clarify the correct MIME types for Word and Excel uploads, or confirm whether the documentation is accurate regarding support for these formats? Additionally, is there any known workaround to make these uploads succeed?
Thanks!