Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
GRomain
Contributor III
Contributor III

uploading file on API using tFileFetch

Hi everyone,

I've an issue when i try to upload a file when i use a tFileFetch.

Here is what i have when i try it in postman :

0695b00000HubJoAAJ.png

Here is my configuration in Talend:

0695b00000HubJaAAJ.jpg

For me the configuration is good and the same as done in postman but the response is :

{

"success":true,

"data":{

"code":"9c11f828-4a14-4476-a4b9-340518c51655",

"classification_code":"dam_sort",

"location":"\/medias\/code\/9c11f828-4a14-4476-a4b9-340518c51655"

}

}

I got this issue when my "code" is not set or wrong in Postman. But why is this wrong in talend?

Labels (2)
1 Solution

Accepted Solutions
GRomain
Contributor III
Contributor III
Author

Finally founded by trying all types of things.

The "Content-Type" parameter should NOT be set in the headers on the basic settings.

View solution in original post

3 Replies
GRomain
Contributor III
Contributor III
Author

Finally founded by trying all types of things.

The "Content-Type" parameter should NOT be set in the headers on the basic settings.

theronrohr
Contributor II
Contributor II

OMG!!!!

 

It took me so long to figure this out and then I saw that you said it in your own answers!

 

It really sucks that it doesn't clarify that you *should not* specify a content type.

 

Also This component should really be called something like tHTTPMultipartRequest since it includes that already it seems.

Jmiles1658991691
Contributor III
Contributor III

Hi @Romain Griveau​ I have same scenario, I want to upload .jpg on API & able to upload with postman but confused with talend so could you please share your final snapshots for tFilePatch & Postman

 

Thanks!!