<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java Automation Client - Upload change file name in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-upload-change-file-name/m-p/324195#M11196</link>
    <description>&lt;P&gt;I managed to do it :&lt;/P&gt;
&lt;P&gt;document.set("file:filename",name);
document = (Document) session.newRequest("Document.Update").setHeader(Constants.HEADER_NX_SCHEMAS, "*").setInput(document).set("properties", document).execute();&lt;/P&gt;
&lt;P&gt;It works when I create a specific type of document (Picture, video, etc.) but not when I create a file, even if I put a picture in it for example.
Anyone knows why ?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2016 15:13:22 GMT</pubDate>
    <dc:creator>Liam_Lyons</dc:creator>
    <dc:date>2016-11-08T15:13:22Z</dc:date>
    <item>
      <title>Java Automation Client - Upload change file name</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-upload-change-file-name/m-p/324194#M11195</link>
      <description>&lt;P&gt;Hello, I am trying to upload a file using the java automation client :&lt;/P&gt;
&lt;P&gt;FileBlob blob = (FileBlob) session.getFile(path);
session.newRequest("Blob.Attach").setHeader(Constants.HEADER_NX_VOIDOP, "true").setInput(blob)
.set("document", document.getPath().toString()).execute();&lt;/P&gt;
&lt;P&gt;The file uploads fine, but doesnt keep his original name, instead, the file in the nuxeo server was uploaded as nx-automation-upload-xxxxxxxxxxx.tmp. All files i tried to upload are renamed with the prefix nx-automation-upload- and a .tmp extension.&lt;/P&gt;
&lt;P&gt;Is there a way to upload files keeping original names and extensions on server?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 14:42:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-upload-change-file-name/m-p/324194#M11195</guid>
      <dc:creator>Liam_Lyons</dc:creator>
      <dc:date>2016-11-07T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Java Automation Client - Upload change file name</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-upload-change-file-name/m-p/324195#M11196</link>
      <description>&lt;P&gt;I managed to do it :&lt;/P&gt;
&lt;P&gt;document.set("file:filename",name);
document = (Document) session.newRequest("Document.Update").setHeader(Constants.HEADER_NX_SCHEMAS, "*").setInput(document).set("properties", document).execute();&lt;/P&gt;
&lt;P&gt;It works when I create a specific type of document (Picture, video, etc.) but not when I create a file, even if I put a picture in it for example.
Anyone knows why ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 15:13:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-upload-change-file-name/m-p/324195#M11196</guid>
      <dc:creator>Liam_Lyons</dc:creator>
      <dc:date>2016-11-08T15:13:22Z</dc:date>
    </item>
  </channel>
</rss>

