Back to Microsoft OneDrive
Microsoft / Microsoft OneDrive
Upload File from URL
Download a file from a public URL and upload it into OneDrive or SharePoint, optionally inside a specific folder. Uses simple upload for small files and upload sessions for larger files.
microsoftOneDriveUploadURL
Permissions
Optional permissions
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| parentFolderId | file | Optional. Select a OneDrive or SharePoint folder to upload into. If not set, uploads to the root of the connected drive. | No |
| fileUrl | mustache | Public HTTP/HTTPS URL of the file to download and upload. | Yes |
| fileName | mustache | Optional. Name of the file in OneDrive (e.g. "invoice-123.pdf"). If omitted, derived from URL or response headers. | No |
| mimeType | mustache | Optional. MIME type to assign to the uploaded file. If omitted, inferred from HTTP response where possible. | No |
| overwriteExisting | boolean | If true, overwrite the file if it already exists at the target path. If false, return an error. | No |
Returns
| Name | Type | Description |
|---|---|---|
| status | string | UPLOADED or ERROR. |
| sensitive.fileId | string | DriveItem ID of the uploaded file. |
| sensitive.name | string | Name of the uploaded file. |
| sensitive.mimeType | string | MIME type as stored in OneDrive. |
| sensitive.size | string | Size of the uploaded file in bytes as a string, or null if unavailable. |
| confidential.webUrl | string | Web URL to open the file (if available). |
Install In Tools
See how to install an app in your tool
Follow the quick walkthrough below to add marketplace apps into your tool flow.
Step 01
Open your tool setup
Start from the tool workspace where you want to add a new app.
Step 02
Go to tools and create button
Open the Tools page, then click the Create button to start adding a new app.
Step 03
Choose Internal or External work
Choose Internal or External work, then select an app action.
Step 04
Select app to install to Knoon
Pick the app you want to install to Knoon and complete the setup flow.
Step 05
Success!
The app has been installed successfully and is ready to use in your workflow.
Power your business with Knoon's Agentic AI today.
Join businesses already resolving thousands of customer inquiries and sales leads with Knoon.