---
title: "Abort a multipart upload"
method: POST
path: "/v1/files/{file_id}/abort-upload"
tags: ["API", "File Management"]
---

# Abort a multipart upload

`POST /v1/files/{file_id}/abort-upload`

Cancel a direct upload started via `POST /v1/files/init-upload`. Discards any parts already uploaded to storage and marks the file as failed. See the [direct upload guide](https://docs.rendi.dev/direct-upload) for the full flow.

## Path parameters

- `file_id` string, required

## Response `200`

Upload aborted

- object

## Other responses

- `400` — File is not in an upload-in-progress state
- `401` — Invalid API key
- `404` — File not found
- `422` — Validation Error

---

[API](https://skmtc.dev/rendi/apis/ffmpeg-command-api.md) · [All operations](https://skmtc.dev/rendi/apis/ffmpeg-command-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rendi/ffmpeg-command-api/revisions/d3136dbf90f0/schema)
