Google drive download issue

Describe the problem/error/question

I have a problem when I passing the value through to download photo from drive it doesn’t work, so I tested with the value to see to the value are vaild or not but that work. Therfore I don’t get it why can it find the photo in the drive with the passiing value. so can any one help or provide me with the solution please.
Thank you

The following is the workflow if needed to help:

Quick thought on this — the Google Drive ‘Download File’ node expects a plain File ID, not a full URL or filename. If you’re passing something like https://drive.google.com/file/d/ABC123.../view, you’ll need to extract just the alphanumeric ID part (the string after /d/ in the URL). Double-check what your expression is actually passing by adding a temporary ‘Edit Fields’ node before the Drive node to log the value — there’s often a subtle mismatch between what you see in a static test vs. what arrives dynamically. Also confirm the connected Google account has at least ‘Viewer’ access to that specific file.

2 Likes

hello @Sakonkrit_Dechsiriud

You have two items in the input, and one of them is causing this issue. I suppose it’s not the one with the ID 1fy...
The issue also may occur if the ID belongs to a folder instead of a file.

also, add the trim method for cleaning any spaces:
{{ $json.cleanFileId.trim() }}

2 Likes

Thank you for your suggestion

welcome to the n8n community @Sakonkrit_Dechsiriud
Since the hardcoded ID works, I agree the issue is probably not the file ID itself, but how the value is being passed at runtime. In addition to checking the ID format and the failing item, I’d make sure the Download file node is using the current input item rather than a cross-node reference. If that node already receives the output from Extract File ID, using the current item is usually the safest way to keep the item mapping correct.