Hello, as a consequence of the fact that the way the file component works has changed, (with reading restrictions from Andoid 10, etc) now I cannot read files that contain spaces in their path (before if I could read them with the file component)
Now it only reads me the ones that do NOT contain spaces in their path.
Does anyone know if there is now a way to read files containing spaces in their path and how to do it?
Example of error trying to read file with spaces in the path (Legacy mode):
Not even sure you can use Legacy mode in Android 11 for file read or indeed if you can use the path that you show, but even if you can, you would have to maintain two sets of paths to comply with Android 11 - not worth the trouble unless of course your App is never going to be used on Android 11.
The file should either be stored in the ASD (App Specific Directory) or an Android Shared Folder.
Concerning spaces in Directory names, they are not necessary and best avoided, though you could if you wish try replacing spaces with %20.
For now I don't care if Legacy mode works or not on Android 11, I am working on a device with Android 9.
I need the file component to read the files that contain spaces in their name, since the application is aimed at users who can import files with names given by them. I have tried to replace the spaces with "% 20" and it has not worked ...