Skip to content

Instantly share code, notes, and snippets.

@JordanSchuetz
Created June 7, 2021 21:13
Show Gist options
  • Save JordanSchuetz/1e0d8e7034d1bf2f45efae599e6ff558 to your computer and use it in GitHub Desktop.
Save JordanSchuetz/1e0d8e7034d1bf2f45efae599e6ff558 to your computer and use it in GitHub Desktop.
%dw 2.0
import dw::module::Multipart
output multipart/mixed boundary="-----az1by2cx34dw"
---
{
"parts": {
"file" : {
"headers" : {
"Content-Type" : "application/octet-stream",
"Content-Disposition" : {
"name": "tableau_file",
"filename": "SuperstoreDatasource.tdsx"
}
},
content : readUrl("classpath://SuperstoreDatasource.tdsx", "application/octet-stream")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment