Fetch To Local CSV

Categories

Component ID

2882597

Component name

Fetch To Local CSV

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

110

Component created

Component changed

Component body

When using Migrate Source CSV as a source, if your csv file is remote, you can't specify a header row because it uses PHP's rewind(), which will only work on a local file.

This module extends it slightly, allowing you to specify a remote source as well as a local source. The remote will be fetched and saved as the local, overwriting it if it exists.

Usage:

source:
  plugin: fetchtolocalcsv
  remote: https://example.com/file.csv
  path: public://file.csv