Actions14
File → Upload
AI-generatedSummary
Upload a file to a specified OneDrive folder, either by providing the file content as text or as binary data from an input binary field.
Inputs
- File Name — The name the file should be saved as; required if uploading text content.
- Parent ID (required) — ID of the parent folder that will contain the file.
- Binary File (required) — Boolean indicating whether to upload file contents from a binary input field.
- File Content (required) — Text content of the file to upload; used when Binary File is false.
- Input Binary Field (required) — The name of the input binary field containing the file to be uploaded; used when Binary File is true.
Output shape
a single record
Returns the uploaded file metadata as a JSON object. If uploading binary data, the binary content is read from the specified input field and the file is uploaded with its MIME type. File names must be provided when uploading text content and are optional (inferred from binary metadata) when uploading binary data. The operation uploads files up to 4MB in size.