Automation Java Client Upload change file name
Hello. I am trying to upload a file using java client 2.1 using the API example:
Blob fileBlob = new Blob(io.File file); blob = nuxeoClient.automation().newRequest(“Blob.AttachOnDocument”).param(“document”, “/folder/file”).input(fileBlob).execute();
The file uploads fine, but doesnt keep his original name, instead, the file in the nuxeo server was uploaded as nx-automation-upload-1762360318639653777.tmp. All files i tried to upload are renamed with the prefix nx-automation-upload- and a .tmp extension.
Is there a way to upload files keeping original names and extensions on server?