@@ -101,8 +101,8 @@ public class MLRestController {
for(MultipartFileuploadfile:uploadfiles)
{
uri="http://192.168.56.200:8000/LATEST/documents?uri=/final-project/"+uploadfile.getOriginalFilename();// this works, but doesn't work for the right datahase
//uri = "http://192.168.56.200:8000/LATEST/final-project?uri=/" + uploadfile.getOriginalFilename(); // provide the REST API URI
// uri = "http://192.168.56.200:8000/LATEST/documents?uri=/final-project/" + uploadfile.getOriginalFilename(); // this works, but doesn't work for the right datahase
uri="http://192.168.56.200:8000/LATEST/final-project?uri=/"+uploadfile.getOriginalFilename();// provide the REST API URI
// convert the MultipartFile into a file
Filefile=newFile(uploadfile.getName());// provide the file object
file.createNewFile();
@@ -136,7 +136,7 @@ public class MLRestController {
Credentialscredentials=newUsernamePasswordCredentials("admin","admin");// provide username & password