i found out :
HttpsFileUploaderConfig uploaderConfig = new HttpsFileUploaderConfig(endpointURL);
// Do the upload.
// A single file is uploaded with no progress notification
result = HttpsFileUploader.upload(uploaderConfig, new File("/tmp/testfile.dat"));
// Evaluate the result.
if (!result.isError()) {
System.out.println("OK, upload successful");
} else {
System.out.println("Error uploading, http code :" + result.getHttpStatusCode());
System.out.println("Message from server : " + result.getResponseTextNoHtml());
}
Didnt explain what is the variable result actually? Is it string or something special?
i found out :
HttpsFileUploaderConfig uploaderConfig = new HttpsFileUploaderConfig(endpointURL);// Do the upload.// A single file is uploaded with no progress notificationresult = HttpsFileUploader.upload(uploaderConfig, new File("/tmp/testfile.dat"));// Evaluate the result.if (!result.isError()) {System.out.println("OK, upload successful");} else {System.out.println("Error uploading, http code :" + result.getHttpStatusCode());System.out.println("Message from server : " + result.getResponseTextNoHtml());}Didnt explain what is the variable result actually? Is it string or something special?