Starting with the SDK30 Android restricts accessing the file system. Therefore you have to store the image in the ASD now... in my file extension you can find a method for that.
Up to SDK29 it was possible to store something in an arbitrary directory. Starting from SDK30 unfortunately this is not possible anymore. We only have access to the ASD and shared storage, i.e. for photos the folder /DCIM and /Pictures. To copy or move a taken picture to the shared storage, please use the new file component. Note: currently as of August 30, 2021 there are still some bugs in the file component which have to be fixed, see for example this thread..