> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Files

> Upload files from URLs into a SharePoint document library or OneDrive folder

Upload files from URLs into a SharePoint document library or OneDrive folder. Returns the uploaded files with a temp public download URL each.

|                       |                           |
| --------------------- | ------------------------- |
| **App**               | Microsoft SharePoint      |
| **Operation ID**      | `sharepoint_upload_files` |
| **Type**              | Action                    |
| **Connection**        | `sharepoint` (required)   |
| **Credits per run**   | 1                         |
| **Agent / MCP tool**  | Yes                       |
| **Requires approval** | Yes (write operation)     |

## Inputs

| Field         | Type                                          | Required | Default | Description                                                                                                                                         |
| ------------- | --------------------------------------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `site`        | string or SelectItem                          | No       | -       | SharePoint site the document library belongs to, or 'me' for the user's own OneDrive.                                                               |
| `drive`       | string or SelectItem                          | No       | -       | Document library (drive) to upload into. Not needed when folder\_path is a full SharePoint link.                                                    |
| `folder_path` | string                                        | No       | -       | Destination folder: a path inside the library, e.g. 'Creative Ads/Q4', or a full SharePoint folder link. Leave empty to upload to the library root. |
| `upload_type` | string                                        | Yes      | -       | Type of upload: single or multiple                                                                                                                  |
| `file_url`    | string                                        | No       | -       | Single file URL for single upload                                                                                                                   |
| `file_name`   | string                                        | No       | -       | Custom filename for single upload                                                                                                                   |
| `file_urls`   | array (also accepts a comma-separated string) | No       | -       | List of file URLs for multiple upload                                                                                                               |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `List[Dict]`

Returns the uploaded files.

**Fields**: `file_id`, `file_name`, `file_url`, `file_type`, `size`, `download_url`
