Skip to main content
7-Bedrock
August 2, 2022
Solved

REST API, Upload file, Stage2, contentInfos empty

  • August 2, 2022
  • 2 replies
  • 2401 views

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.

 

Best answer by NC_10068031

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

NC_10068031_0-1660255909312.png

 

2 replies

10-Marble
August 2, 2022

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

7-Bedrock
August 2, 2022

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

 

 

NC_100680317-BedrockAuthorAnswer
7-Bedrock
August 11, 2022

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

NC_10068031_0-1660255909312.png