I am working on a project where I have to build the logic to upload documents into document set folders and I am stuck building the end point.
Can we work with document sets in the same way we do it with document libraries?
Is the following approach ok?
url = webUrl + "/_api/web/lists/getByTitle(@TargetLibrary)/RootFolder/folders(@TargetFolderName)/files/add(url=@TargetFileName,overwrite='true')?" + "@TargetLibrary='" + library + "'" + "@TargetFolderName='" + folder + "'" + "&@TargetFileName='" + file.name + "'";
I would appreciate if you could point me in the right direction, I have been stuck for hours now.