Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

How to Validate Image Uploads and Limit the File Size

1 replies
Last updated: Sep 5, 2021
Hello, is there a way to validate images uploads and limit the file size uploaded ?
Sep 4, 2021, 11:48 AM
There is an accept option for image validation and you shouldn't worry about image size as you can trasform image to any size and quality later.
See:
https://www.sanity.io/docs/image-type
and
https://www.sanity.io/docs/presenting-images
Sep 5, 2021, 3:43 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?