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.io – build remarkable experiences at scale

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

Categorized in