cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

REST API, Upload file, Stage2, contentInfos empty

NC_10068031
7-Bedrock

REST API, Upload file, Stage2, contentInfos empty

Hi,

I try to upload a file, stage 1 is ok, but stage 2 return an empty json like this;

 

{
    "contentInfos":[]
}

 

My code in C# is this;

NC_10068031_0-1659467558359.png

Maybe the way i get the stream of the file is not the correct or the content type.

 

Help on this is appreciated.

 

ACCEPTED SOLUTION

Accepted Solutions

Just for the record, I made some changes in my code and then now I get a correct answer;

NC_10068031_0-1660255909312.png

 

View solution in original post

3 REPLIES 3

lstStreamIds should by StreamIds+FileNames+StreamIds. And I'm not sure about the rest because I'm not familiar with C#.

You're right, but actually my fileNames and StreamsIds have the same value;

NC_10068031_0-1659471813348.png

 

An additional information, the request directly in Postman execute correctly;

 

NC_10068031_1-1659472067815.png

 

 

Just for the record, I made some changes in my code and then now I get a correct answer;

NC_10068031_0-1660255909312.png

 

Announcements


Top Tags