How do you import data from file on API30, API31?

Which means, your app is not owner of the downloaded file and therefore you can't read it using the file component, see also the overview by @Anke here

You can

  1. download it using your own app and then use the file component to read it, or
  2. use the SAF extension

Taifun