Stringuri="http://192.168.56.200:8000/LATEST/documents?uri=/final-project/"/* + the name of the file we're trying to upload goes here */;// provide the REST API URI
Stringuri="";
HttpPutput=newHttpPut(uri);
Filefile=null;// provide the file object
for(MultipartFileuploadfile:uploadfiles){
uri="http://192.168.56.200:8000/LATEST/documents?uri=/final-project/"+uploadfile.getOriginalFilename();// provide the REST API URI
// convert the MultipartFile into a file
Filefile=newFile(uploadfile.getOriginalFilename());// provide the file object