multiple content-type in ng2-file-upload #835
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I just want to send multiple content-type like
------WebKitFormBoundaryQnp69S71qB5l4BTA
Content-Disposition: form-data; name="segmentData"
Content-Type: application/json; charset=UTF-8
{"campaignName":"dadas","visibility":0,"source":2,"composingSegments":0}
------WebKitFormBoundaryQnp69S71qB5l4BTA
Content-Disposition: form-data; name="file"; filename="segment_sample.csv"
Content-Type: text/csv
------WebKitFormBoundaryQnp69S71qB5l4BTA--
but i am not able to send content-type with segmentData
code snippet
......
this.uploader = new FileUploader({ url: uploadURL });
let temp = JSON.stringify({ 'campaignName': 'dadas', 'visibility': 0, 'source': 2, 'composingSegments': 0 });
this.uploader.onBuildItemForm = (item, form) => {
form.append('segmentData', temp);
};
.....
how to do it? how to add content-type with segment data
@ciriarte @karlhiramoto @marcalj @retrospectacus @NathanWalker..please help..
+1
+1
Still not resolved this issue ?