This article is for Flatfile's Portal 2.0. If you'd like to check out the latest version of the Flatfile Data Exchange Platform, click here!
Flatfile Portal 2.0 does not support using a URL directly as a source for data. To use a URL, you will need to use `fetch`.
The code to do so should look something like this:
const csvRequest = await fetch(csvUrl)importer.requestDataFromUser({
source: await csvRequest.text()
})
The ability to do this is only possible in Portal 2.0 at this time, not Portal 3.0 or Workspaces.