<?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 How to pass author name when upload image file? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-author-name-when-upload-image-file/m-p/25437#M12561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am uploading an image from local folder to alfresco server using repository and content webservices (in .NET 2003 windows application) and that one is working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to pass file name, description and author name when uploading the image file - I used the NamedValue class as follows,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NamedValue[] properties = new NamedValue[] { new NamedValue(), new NamedValue(), new NamedValue() };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;properties[0].name = "{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}name" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}name&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;properties[0].value&amp;nbsp; = "Test.pdf";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;properties[1].name = "{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}description" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}description&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;properties[1].value = "Test Description";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;properties[2].name = "{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}author" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}author&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;properties[2].value = "Test Author";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code working fine and transferring the file name and description when uploading image from .NET application to alfresco and author name given here is not transferred to the image property - Is there any problem in the above code in author?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please give me some clue to transfer author name along with file name and description - We wanted some immediate help on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking forward for your message, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;K.Kannan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 May 2006 12:39:00 GMT</pubDate>
    <dc:creator>kannank</dc:creator>
    <dc:date>2006-05-11T12:39:00Z</dc:date>
    <item>
      <title>How to pass author name when upload image file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-author-name-when-upload-image-file/m-p/25437#M12561</link>
      <description>Hi, I am uploading an image from local folder to alfresco server using repository and content webservices (in .NET 2003 windows application) and that one is working fine.I wanted to pass file name, description and author name when uploading the image file - I used the NamedValue class as follows,Nam</description>
      <pubDate>Thu, 11 May 2006 12:39:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-author-name-when-upload-image-file/m-p/25437#M12561</guid>
      <dc:creator>kannank</dc:creator>
      <dc:date>2006-05-11T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass author name when upload image file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-author-name-when-upload-image-file/m-p/25438#M12562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested the above code for the "author" again and understood that the values are stored in the mysql database - I found all the values are stored in node_properties table in the mysql database and when I test the alfresco webclient, then the author value is not shown in the image file property and all other file properties like title / description etc are correctly shown in the web client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We need to solve this very urgently - Please give some clue why we are not able to get the author display in webclient eventhough the author values are present in table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking for your message,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;K.Kannan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 06:56:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-author-name-when-upload-image-file/m-p/25438#M12562</guid>
      <dc:creator>kannank</dc:creator>
      <dc:date>2006-05-13T06:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass author name when upload image file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-author-name-when-upload-image-file/m-p/25439#M12563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;NamedValue[] properties = new NamedValue[] {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Utils.createNamedValue(Constants.PROP_NAME, newFile.getName()),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Utils.createNamedValue(Constants.PROP_TITLE, title),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Utils.createNamedValue(Constants.PROP_DESCRIPTION, description),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue("{&lt;A href="http://www.alfresco.org/model/content/1.0}author" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}author&lt;/A&gt;", "Test Author") };&lt;BR /&gt;CMLCreate create = new CMLCreate("1", parentReference, Constants.TYPE_CONTENT, properties);&lt;BR /&gt;CMLAddAspect addAspect = new CMLAddAspect("{&lt;A href="http://www.alfresco.org/model/content/1.0}author" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}author&lt;/A&gt;", null, null, "id1");&lt;BR /&gt;CML cml = new CML();&lt;BR /&gt;cml.setCreate(new CMLCreate[] { create });&lt;BR /&gt;cml.setAddAspect(new CMLAddAspect[] { addAspect });&lt;BR /&gt;UpdateResult[] result = WebServiceFactory.getRepositoryService().update(cml);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The key to this code is to add the CMLAddAspect to the CML. By default, Alfresco does not support the "author" metadata. You must add it manually.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2006 20:43:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-author-name-when-upload-image-file/m-p/25439#M12563</guid>
      <dc:creator>robmeyer</dc:creator>
      <dc:date>2006-07-12T20:43:23Z</dc:date>
    </item>
  </channel>
</rss>

