Conditionally Reject Uploaded Image #2634
Unanswered
AiMAnsarie
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I see a lot of older implementations of custom logic, for when the image is uploaded but before it's accepted, but none of those are working anymore.
Is there a way to add custom logic when the image is selected by the user? I want to be able to reject it based on it's size, dimensions and a couple other factors. I also want to be able to convert the image to bytes and use Image.memory to display the image.
I see imageProviderBuilder method but it's not asynchronous and it does not allow me to reject the image altogether.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions