Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Insight

Upload a zipped CSV file using Curl

  • Last UpdatedSep 11, 2023
  • 1 minute read

This example uploads data from a CSV file that was compressed using gzip (C:\Corp\Operations\SnacksBox_Dec2016.csv.gz).

Note: For a gzip file, you must first specify the Content-Encoding header. To post a file, you must specify the x-fileName header.

curl --upload-file "C:\Corp\Operations\SnacksBox_Dec2016.csv.gz"
-H "Authorization:Bearer MY_BEARER_TOKEN"
-H "Content-Type:text/CSV"
-H "Content-Encoding:gzip"
-H "x-filename:SnacksBox_Dec2016.csv.gz " https://online.wonderware.[DOMAINSUFFIX]/apis/upload/datasource/

Related Links
TitleResults for “How to create a CRG?”Also Available in