Microsoft OneDrive icon

Microsoft OneDrive

Consume Microsoft OneDrive API

File → Upload

AI-generated

Summary

Uploads a file to the specified OneDrive parent folder using either text content or an incoming binary field. For text uploads, provide a file name; for binary uploads, the node uses the provided file name or falls back to the binary file’s name.

Inputs

  • Parent ID (required) — ID of the OneDrive folder that will contain the uploaded file.
  • Binary File (required) — Choose whether to upload from an input binary field or from text content.
  • File Name — Name to save the file as. Required at runtime for text uploads; binary uploads fall back to the binary file’s name when this is blank.
  • File Content (required) — Text to upload when Binary File is disabled.
  • Input Binary Field (required) — Name of the incoming binary field to upload when Binary File is enabled; defaults to data.

Output shape

A single output item per input item containing the OneDrive API response for the uploaded file.

Uploads use a PUT to the parent folder’s content endpoint. The operation description says files up to 4 MB. Errors are thrown unless Continue On Fail is enabled, in which case an error item is returned.

Links

Discussion