Google AI Studio (Gemini) → Upload File

Status: Closed · Asked by FAST Restoration on · 0 views

FAST Restoration — Question ·
Hi Pabbly Support,

I'm experiencing an issue with Google AI Studio (Gemini) → Upload File.

I'm uploading a valid PDF from a publicly accessible Google Drive download URL. The upload succeeds, but Pabbly registers its MIME type as `application/octet-stream` instead of `application/pdf`.

Consequently, the next action (Generate Content With Files) fails with:

`400 – Unsupported MIME type: application/octet-stream`

Google Drive correctly identifies the original file as `application/pdf`.

Is there a way to explicitly specify the MIME type during upload, or can this be corrected in the integration?
Screenshot 2026-10-17 151158.png
Pabbly Support — Reply ·

Hi,

Thank you for sharing the file URL and screenshots.

We can see that the Upload File action is identifying the PDF as application/octet-stream, which is causing the subsequent Generate Content With Files action to fail.

Please try the following:

  1. Download the PDF and upload it to another hosting service that serves the file with the correct Content-Type: application/pdf header.

  2. Use the new direct download URL in the Google Gemini – Upload File action and test the workflow again.

  3. If the issue persists, please confirm whether the same PDF uploads and works successfully when uploaded directly through Google AI Studio.

If the MIME type is still detected incorrectly, please share the updated Task History ID and the Upload File action's output.

Thanks & Regards,
Vinay Jain
Customer Support Associate
🌐 Pabbly.comSignature image

Back to all forum threads · Log in to reply