> For the complete documentation index, see [llms.txt](https://api-docs.everreal.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.everreal.co/endpoints/document-management.md).

# Document management

Uploading files and documents into EverReal

## Introduction

#### EverReal has 2 ways to upload files.

1. Upload a **document** and link it to an entity at once.
2. Upload a **file** to use it later, for example as a document or as a picture of a [listing](https://api-docs.everreal.co/key-concepts.md#listing).

#### Most common scenarios

* For uploading documents to [properties](https://api-docs.everreal.co/key-concepts.md#property) and [units](https://api-docs.everreal.co/key-concepts.md#unit), use the [Document management](https://api-docs.everreal.co/endpoints/document-management/document-management.md) page.
* For uploading files for listings, use the [Simple file upload](https://api-docs.everreal.co/endpoints/document-management/simple-file-upload.md) page.
* To add listing pictures and floor plans from https links in one call, or to ask for the upload folder of a listing, see [Listing: pictures and files](https://api-docs.everreal.co/endpoints/listing/listing-pictures-and-files.md).
* To set the [energy certificate](https://api-docs.everreal.co/key-concepts.md#energy-certificate) of a listing, see [Listing: energy certificate](https://api-docs.everreal.co/endpoints/listing/listing-energy-certificate.md).

#### Important to know

* EverReal counts all files of your account. Above 10 GB in total, extra cost applies.
* The largest file for an upload is 20 MB.
* An upload in chunks is not possible.
* EverReal makes pictures smaller, to a maximum width or height of 2500 px.
* Send a relative path as `resourcePath` with every upload. The answer gives the final `resourcePath`, with the [company](https://api-docs.everreal.co/key-concepts.md#company) folder in front: `subdomain/{accountUniqueIdentifier}/{resourcePath}`.
  * For a document, the document id comes at the end: `subdomain/{accountUniqueIdentifier}/{resourcePath}/{documentId}`
  * `resourcePath` is required. EverReal refuses a path that leaves your company folder.
* For the full URL of the file, put one of these addresses in front of the returned `resourcePath`:
  * `https://resources.everreal.co/returnedResourcePath` for production environment
  * `https://qa.resources.everreal.co/returnedResourcePath` for staging environment
* There is no "update" endpoint, because the CDN keeps copies of the files for 1 to 24 hours. Create a new file and delete the old one.

#### GDPR

* EverReal stores all files encrypted in AWS S3. Only EverReal has access to them.
