How to implement a file picker in Jetpack compose considering permissions for all Android Apis?
I want a feature in my jetpack compose app that a file picker opens up and lets the user select a document file like a pdf. In my below implementation, I can get the URI of the selected file but I want to have the File object of the selected file to send it to my server. the problem is that the way I create the File, every time I get this error: open failed: ENOENT (No such file or directory)
I think that the error is because of permissions. I have implemented a permissions check too but I...