---
title: "Upload File"
method: POST
path: "/storage-providers/space/{space_id}/upload"
tags: ["storage-providers"]
---

# Upload File

`POST /storage-providers/space/{space_id}/upload`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/storage-providers/space/{space_id}/upload`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Upload a file using the space's connected storage provider.

## Path parameters

- `space_id` string, uuid, required

## Query parameters

- `path` string

## Request body `multipart/form-data`

- BodyUploadFileStorageProvidersSpaceSpaceIdUploadPost
  - `file` string, binary, required

## Response `200`

Successful Response

- StorageFileResponse: File stored via a storage provider.
  - `name` string, required
  - `url` string, required
  - `size_bytes` integer, required
  - `content_type` string, required
  - `provider` string, required
  - `provider_path` string, required

## Other responses

- `422`: Validation Error

---

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