Please update your post with proper code blocks so that we can easily read it.
Also, not sure what this.downloadFile is doing as I don’t see that function declared in the code you shared. Either way, looks like maybe you are trying to download files using the web stack? You should be downloading files at the native layer using the Capacitor plugin - Filesystem Capacitor Plugin API | Capacitor Documentation