Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show crop modal only for case when image did not pass validation #254

Closed
komarovalexander opened this issue Oct 12, 2023 · 4 comments
Closed

Comments

@komarovalexander
Copy link

komarovalexander commented Oct 12, 2023

hi team, is there a way to check if image is valid and if it is valid then upload it without crop modal to be shown, and if it is not valid then show crop modal?
awesome library!
thanks

@nanxiaobei
Copy link
Owner

can use beforeCrop to decide whether to open modal.

https://github.com/nanxiaobei/antd-img-crop#props

@komarovalexander
Copy link
Author

Hi @nanxiaobei thanks for the answer, but in that case customRequest will not work #190

but as image is valid it should upload the image, can you advice a solution, thanks!

@nanxiaobei
Copy link
Owner

Sorry but currently I have no time to support this feature.

@komarovalexander
Copy link
Author

thanks, looks like I found the solution #190 (comment)
great library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants