---
title: "File"
description: "Discover how to utilize the File field in Contentstack entries for uploading diverse assets. Learn about customizable properties and visibility rules."
url: "https://www.contentstack.com/docs/headless-cms/file"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-07-22"
---

# File

The **File** field enables users to upload and use files in an [entry](/docs/headless-cms/about-entries). The File field can be used to add assets, such as images, videos, PDFs, and audio files to your entries.

![File\_1.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt4fd2a153032e2c6a/667e87275e288d43e4a21326/File_1.png)

The File field possesses certain [properties](/docs/headless-cms/about-field-properties) that you can change at any time as per your requirements. The properties that can be modified are “[Display Name](/docs/headless-cms/display-name),” “[Unique ID](/docs/headless-cms/unique-id),” “[Instruction Value](/docs/headless-cms/instruction-value),” “[Help Text](/docs/headless-cms/help-text),” “[Mandatory](/docs/headless-cms/mandatory),” “[Multiple](/docs/headless-cms/multiple),” “[Allow Images Only](/docs/headless-cms/allow-images-only),” “[Non-localizable](/docs/headless-cms/non-localizable),” “[Allowed file type(s)](/docs/headless-cms/allowed-file-types),” and “[File size limit](/docs/headless-cms/file-size-limit) (MB).”

**Note**: If you select the **Multiple** property for this field and mentioned a number, for example 5, in the **Set Maximum Limit** sub-property, then at once you can upload only those numbers of files.

After adding this field in content type, you will see it on your entry page as shown below:

![File\_2.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt51463f30b101dc7f/667e85abc66c882cfe69d520/File_2.png)

**Additional Resource**:

*   If you want to hide/show a field when certain conditions are met, you can use [Field Visibility Rules.](/docs/headless-cms/about-field-visibility-rules)
*   To learn how you can use a field for a given scenario, we recommend you to check out our [Content Modeling](/docs/headless-cms/about-content-modeling) guide.
*   Editing any current field in existing Content Type might result in data loss. To prevent data loss, make sure to check out our [Content Type Change Management](/docs/headless-cms/content-type-change-management) guide.