REST API, Upload file, Stage2, contentInfos empty
‎Aug 02, 2022
03:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Aug 02, 2022
03:20 PM
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;
Maybe the way i get the stream of the file is not the correct or the content type.
Help on this is appreciated.
Solved! Go to Solution.
Labels:
- Labels:
-
Document Mgmt
-
Other
ACCEPTED SOLUTION
Accepted Solutions
‎Aug 11, 2022
06:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Aug 11, 2022
06:12 PM
Just for the record, I made some changes in my code and then now I get a correct answer;
3 REPLIES 3
‎Aug 02, 2022
03:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Aug 02, 2022
03:55 PM
lstStreamIds should by StreamIds+FileNames+StreamIds. And I'm not sure about the rest because I'm not familiar with C#.
‎Aug 02, 2022
04:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Aug 02, 2022
04:28 PM
You're right, but actually my fileNames and StreamsIds have the same value;
An additional information, the request directly in Postman execute correctly;
‎Aug 11, 2022
06:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Aug 11, 2022
06:12 PM
Just for the record, I made some changes in my code and then now I get a correct answer;