Image Picker with size

I want that no one can pick up pictures larger than 5 MB with image picker.

Is it possible to do this in kodular?

Just make sure the images that can be selected are all less than 5 MB in size.

After picking file check if its size is less than 5 mb or not.
If less then proceed else show an alert.

How can the app understand how many MB of the image?

Try this:

or use Taifun File.length method to be able to use the absolute path. Then it should also work with the removable SD card.

1 Like

Thanks :heart_eyes::heart_eyes::heart_eyes::heart_eyes::heart_eyes:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.