> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/build/google-drive.md).

# Upload a file with Google Drive in Duaer

In Duaer, Google Drive defaults to Authentication OAuth2, Resource File, and Operation Upload. Input Data Field Name defaults to data. You need a googleDriveOAuth2Api credential.
## Upload a file

1. Create a googleDriveOAuth2Api credential (or switch to Service Account in the panel).
2. Search for Google Drive, connect it after a node that has binary data, and select that credential.
3. Leave Resource on File and Operation on Upload.
4. Leave Input Data Field Name on data (or set your binary field). Optionally set File Name, Parent Drive, and Parent Folder.
5. Select Execute step.

Under File you also get Download, Copy, Move, Share, Update, Delete, and Create From Text.

For spreadsheets, see [Read rows with Google Sheets in Duaer](/build/google-sheets.md). For another cloud drive, see [Upload a file with Dropbox in Duaer](/build/dropbox.md).
## Questions

### Does Google Drive Upload in Duaer need a host file path?

No. It uploads binary data on the item, not a path on the host disk.

## Related

- [Read rows with Google Sheets in Duaer](https://doc.duaer.com/build/google-sheets.md)
- [Transfer files with FTP in Duaer](https://doc.duaer.com/build/ftp.md)
- [Upload a file with Dropbox in Duaer](https://doc.duaer.com/build/dropbox.md)

