---
title: "Upload one or more files"
method: POST
path: "/browsers/{id_or_name}/fs/upload"
tags: ["Browser Filesystem"]
---

# Upload one or more files

`POST /browsers/{id_or_name}/fs/upload`

## Request

- Base URL: `https://api.onkernel.com`
- URL: `https://api.onkernel.com/browsers/{id_or_name}/fs/upload`
- Auth: HTTP bearer

Allows uploading single or multiple files to the remote filesystem.

## Path parameters

- `id_or_name` string, required

## Request body `multipart/form-data`

- object
  - `files` object[], required
    - `dest_path` string, required: Absolute destination path to write the file.
    - `file` string, binary, required

## Response `201`

Files uploaded successfully

## Other responses

- `400`: Bad Request – invalid input
- `403`: Forbidden – insufficient permissions or plan
- `404`: Resource not found
- `500`: Internal Server Error
- `default`: Error returned by the browser or its proxy

---

[API](https://skmtc.dev/onkernel/apis/kernel-api.md) - [All operations](https://skmtc.dev/onkernel/apis/kernel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onkernel/apis/kernel-api/revisions/0f6cf4f58fe6?raw)
