cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Java Client Upload change file name

Vladimir_Bello
Champ in-the-making
Champ in-the-making

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?

1 REPLY 1

Prakash_Vidja
Champ in-the-making
Champ in-the-making

hi Vladimir,

Did you find the solution ? i have also same problem.