Force user to use a certain aspect ratio crop before upload

After reading the documentation I did not see any indication you can force the user to use a certain aspect ratio before submission. I know I can force them to only use 4:3 crop, however what would stop the user from just submitting with out cropping? Is there a way to tell the user they need to crop before submission?

Thank you for your time!

Hi @seekpiece,

If you have the widget configured to upload single files and crop enabled, the crop step will be mandatory. For example,

<input type="hidden" role="uploadcare-uploader" data-crop="3:4" />

If the multiple option is enabled along with crop, the UX will be different. A user will need to select an image from the list on the preview tab to crop it. However, if they skip this step, the crop will be applied anyways unless the crop preset contains the “free” option. For example,

<input type="hidden" role="uploadcare-uploader" data-multiple data-crop="3:4, 5:6" />
The widget will add the crop operation to every uploaded image. 3:4 preset will be used by default.

<input type="hidden" role="uploadcare-uploader" data-crop="free, 3:4" />
The widget won’t crop images unles a user do this manually.

Hope that helps.