> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1-news.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload a file

> POST /v1/projects/{projectId}/media uploads a gallery file. Send the file as base64 with its content type and name.

Upload a file to the gallery. Accepted types are PNG, JPEG, WebP, GIF, SVG, and PDF. The file must be under 8 MB.

**projectId** `string` *required*

The newsroom id.

**contentType** `string` *required*

One of image/png, image/jpeg, image/webp, image/gif, image/svg+xml, application/pdf.

**dataBase64** `string` *required*

The file, encoded as base64.

**name** `string`

A file name. The extension is taken from the content type.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.