---
title: "Preflight check before upload"
method: OPTIONS
path: "/files/content"
tags: ["Files"]
---

# Preflight check before upload

`OPTIONS /files/content`

Performs a check to verify that a file will be accepted by Box
before you upload the entire file.

## Request body

- object
  - `name` string — The name for the file.
  - `size` integer — The size of the file in bytes.
  - `parent` object — The parent folder to upload the file to.
    - `id` string — The ID of parent item.

## Response `200`

If the check passed, the response will include a session URL that
can be used to upload the file to.

- UploadUrl — The details for the upload session for the file.
  - `upload_url` string — A URL for an upload session that can be used to upload the file.
  - `upload_token` string — An optional access token to use to upload the file.

## Other responses

- `409` — If the check did not pass, the response will include some details on why it did not pass.
- `default` — An unexpected client error.

---

[API](https://skmtc.net/box/apis/platform-api.md) · [All operations](https://skmtc.net/box/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/box/platform-api/revisions/ba8f087e1a4d/schema)
