---
title: "POST /upload"
method: POST
path: "/upload"
tags: ["upload"]
---

# POST /upload

`POST /upload`

## Request

- Base URL: `http://localhost:25100`
- URL: `http://localhost:25100/upload`
- Auth: none declared

handles the uploading of a file to AWS S3

## Request body `multipart/form-data`

- object
  - `aliasName` string, required: An alias name for the file
  - `chunkNumber` integer, required: The index of the current chunk being uploaded, the first chunk is 1 not base 0
  - `chunkSize` integer, required: The size of each chunk in bytes
  - `currentChunkSize` integer, required: The size of a current chunk
  - `fileName` string, required: The name of the file being uploaded
  - `identifier` string, required: A unique identifier for the file upload session
  - `relativePath` string, required: The path where the file will be stored
  - `totalChunks` integer, required: The total number of chunks the file is divided into
  - `totalSize` integer, required: The total size of the file in bytes
  - `type` string, required: The MIME type of the file being uploaded

## Response `200`

OK

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/office-of-national-statistics/apis/upload-service.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/upload-service/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/upload-service/revisions/975b70bb90c9?raw)
