Skip to main content

Hi,

I’m trying to request Google AI Studio (Gemini) to transcribe a file.

The trigger is new file added to Google Drive

It returns the error as if the file is not being passed to Gemini:

Error uploading file: TypeError: Cannot read properties of undefined (reading 'upload')

 

What field should I be using from the Google Drive output inside the Gemini prompt?

 

I’ve tested using the Google AI Studio website, and the file is working fine there.

 

Thanks

 

 

Hi ​@londonhdl,

 

Welcome to the Community.
If you're experiencing issues with the Google Drive to Gemini integration, the problem may be that Gemini isn't recognizing the file from Google Drive. This can happen if the wrong type of link is used in the Zap. Try using the "Direct Media Link" or "Web Content Link" from the Google Drive trigger—whichever works best. If the issue persists, check that the file type and size meet Gemini's requirements.
I hope this helps. Let us know if you need further assistance.