Capacitor filesystem write permission error in Android 13

I used the capacitor filesystem to download image, for Android 12 and below there were no problems, but permission problems appeared on Android 13 target API 33. I use capacitor 4

Error: Missing the following permission in AndroidManifest.xml android.permission.WRITE_EXTERNAL_STORAGE

I have made a similar post on Stackoverflow:

You have to update to Capacitor 5 and latest capacitor/filesystem 5.x