miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.35k stars 673 forks source link

Images on Android are always compressing even if we set allowCompression to false #1633

Open MateusHBR opened 5 hours ago

MateusHBR commented 5 hours ago

Before creating an issue, make sure that you are on the latest file_picker version and that there aren't already any similar opened inssues. Also, check if it isn't described on the Wiki, specially on Troubleshooting page.

Also, sometimes a simple flutter clean and flutter build again with latest file_picker version, may end up by fixing cached issues, so I encourage you to first do so.

Describe the bug When triggering pickFiles, the allowCompression has no effect on Android and always compress images

Platform

Platform OS version ALL

How are you picking?

    await FilePicker.platform.pickFiles(
        allowCompression: false,
        type: FileType.image,
    )

Details to reproduce the issue Trigger the pick file with allowCompression as false

Error Log Please, post the full console log of your issue, if applicable.

Screenshots and/or video If applicable, add screenshots or video to help explain your problem.

Flutter Version details Please, post the output of your flutter doctor -v, preferably, while running the issued device/simulator.

Additional context Add any other context about the problem here.