> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/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/zh/build/google-drive.md).

# 在 Duaer 里用 Google Drive 上传文件

在 Duaer 里，Google Drive 默认 Authentication 是 OAuth2，Resource 是 File，Operation 是 Upload。Input Data Field Name 默认 data。需要 googleDriveOAuth2Api 凭据。
## 上传一个文件

1. 先建好 googleDriveOAuth2Api 凭据（或按面板改用 Service Account）。
2. 搜索 Google Drive，接到带有 binary 的节点后面，选上凭据。
3. Resource 保持 File，Operation 保持 Upload。
4. Input Data Field Name 保持 data（或改成你的 binary 字段名）。可填 File Name、Parent Drive、Parent Folder。
5. 点执行此步骤。

同一 Resource 下还有 Download、Copy、Move、Share、Update、Delete、Create From Text。

表格协作见 [在 Duaer 里用 Google Sheets 读行](/zh/build/google-sheets.md)；其他网盘见 [在 Duaer 里用 Dropbox 上传文件](/zh/build/dropbox.md)。
## Questions

### Duaer 的 Google Drive Upload 需要主机路径吗？

不需要。它上传的是条目上的 binary，不是本机磁盘路径。

## 相关

- [在 Duaer 里用 Google Sheets 读行](https://doc.duaer.com/zh/build/google-sheets.md)
- [在 Duaer 里用 FTP 传文件](https://doc.duaer.com/zh/build/ftp.md)
- [在 Duaer 里用 Dropbox 上传文件](https://doc.duaer.com/zh/build/dropbox.md)

