Similar to this (Upload multiple files using rest api) I want to upload files to an existing Docset. I am using the pure REST API as I am on Java.
I asked myself, how to control where the uploaded file should go - currently it's going to the "root" of my list.
Sorry if my wording is maybe misleading, but I am not a Sharepoint user or developer - I just have to connect to it with another app.
The upload URL I am using looks like this:
Where it oviously starts with my host and website etc. and the placeholders being replaced with
- the server's relative URL I got before after I created the DocSet (0)
- the file name of the uploaded element (2)
I thought I can control the target DocSet by adding to the URL right after (0) OR before the /files part - both lead to an error that says that this is an unknown resource.
Maybe there is a different approach to control the target DocSet?