Microsoft OneDrive (With Drive ID)

Consume Microsoft OneDrive API with custom Drive ID

File → Upload

AI-generated

Summary

Upload a file to a specified folder in Microsoft OneDrive using a Drive ID, supporting both binary and text content uploads.

Inputs

  • File Name — The name under which the file should be saved. For text content uploads, this must be provided; for binary uploads, if empty, the binary data's filename is used if available.
  • Parent ID (required) — The ID of the parent folder in OneDrive where the file will be uploaded.
  • Binary File (required) — Whether the file content is sourced from binary data (true) or text content (false).
  • File Content (required) — The text content of the file to upload, used only if 'Binary File' is false.
  • Input Binary Field (required) — The name of the binary input field containing the file data to upload, required if 'Binary File' is true.

Output shape

a single record per uploaded file

Returns the JSON response from the Microsoft OneDrive API representing the uploaded file's details. For binary upload, the file content is sent as binary with the appropriate MIME type; for text upload, content is sent as 'text/plain'. Throws an error if the file name is not provided for text uploads or upload fails.

Links

Discussion