How to upload files (xlsx,txt,csv) using REST components for Zapi API

One Star

How to upload files (xlsx,txt,csv) using REST components for Zapi API

Experts,
I need to upload files using Talend tREST component to Zephyr/JIRA. I do not know the format/syntax to give in httpbody section like the curl's ( -F "file=@myfile.txt" )

URL
?  
entityId=4783&entityType=TestStepResult

BODY
D:/TestResults/QPJ-707_Count_Mismatch.xls



I gave the full path and file name in body section. When I run, I am getting ERROR_CODE = 500.
Please help on how to give filepath/filename in the body section in tREST or any other REST components.
I do not get enough information in Zephyr/Zapi API website
Thanks,
Prakash.R

Employee

Re: How to upload files (xlsx,txt,csv) using REST components for Zapi API

use tFileFetch with POST and the advanced setting Upload File
Thomas Steinborn
VP Product Management

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now