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

customRequest is skipped when beforeCrop returns falsy #190

Closed
WenhanDo opened this issue Jul 14, 2022 · 3 comments
Closed

customRequest is skipped when beforeCrop returns falsy #190

WenhanDo opened this issue Jul 14, 2022 · 3 comments

Comments

@WenhanDo
Copy link

I have a situation where only certain kind of images need cop and for others, cop is skipped by returning false in beforeCrop
but customRequest is skipped when beforeCrop returns false or a Promise that resolves false

is this a feature or a bug?

@WenhanDo
Copy link
Author

also, seems like beforeUpload is skipped too

@nanxiaobei
Copy link
Owner

when beforeCrop returns falsy, will stop the upload work.

@komarovalexander
Copy link

@WenhanDo instead of false, return the passed file and it will work

	beforeCrop={(file) => file}

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

3 participants