urgent-maroonU
Refine2y ago
7 replies
urgent-maroon

antd-img-crop

As the Ant Design documentation in the "Upload" component suggests, I imported the "antd-img-crop" library and wrapped the Upload component with it (on a form.item) to handle avatar uploads, so that all of them are squares. The problem is that <ImgCrop> seems to not passing the result to the form.item parent that handle the form data, so that it is never submitted.
How i should do to use <ImgCrop> correctly to make it work?
Was this page helpful?