---
title: "Allow images only"
description: "Allow images only of your fields"
url: "https://www.contentstack.com/docs/headless-cms/allow-images-only"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-07-22"
---

# Allow images only

The **Allow images only** option is only applicable for the [**File**](/docs/headless-cms/file) field. It allows users to upload only image files instead of any other file type.

Here's the list of file types that the “File” field supports when you select the **Allow images only** option: svg, svg+xml, gif, jpeg, jpg, png, tif, tiff, bmp, ico, x-icon, ief, cis-cod, pipeg, x-cmu-raster, x-cmx, x-portable-anymap, x-portable-bitmap, x-portable-graymap, x-portable-pixmap, x-rgb, x-xbitmap, x-xpixmap, x-xwindowdump, x-pcx, and webp.

When you select this option, you can specify the **File size limit** by selecting the minimum and maximum **MB.** This will prompt the user to upload an image of the specific dimension on the [entry](/docs/headless-cms/about-entries) page.

**Additional Resource**: You can check out the [Validations](/docs/administration/validations) guide to learn more about the several types of validation that you can set up on a field.  
  
If you want to make changes to any field’s properties, make sure you go through our [Content Type Change Management](/docs/headless-cms/content-type-change-management) guide to avoid data loss.