<?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: How to upload document on user created folder using dotcmis dll  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-upload-document-on-user-created-folder-using-dotcmis-dll/m-p/311713#M264843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use session.GetObjectByPath（） or session.GetObject to get the IFolder object ,and use CreateDocument mehtod of IFolder to upload document to that folder,&lt;/P&gt;&lt;P&gt;for exmple using GetObjectByPath()&lt;/P&gt;&lt;P&gt;&amp;nbsp; IFolder folder1 = (IFolder)session.GetObjectByPath("/TESTFOLDER1");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dictionary&amp;lt;string, object&amp;gt; properties = new Dictionary&amp;lt;string, object&amp;gt;();&lt;/P&gt;&lt;P&gt;&amp;nbsp; properties[PropertyIds.ObjectTypeId] = "cmis:document";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ContentStream contentStream = new ContentStream();&lt;/P&gt;&lt;P&gt;&amp;nbsp; FileStream fs = new FileStream("D:\\*****.pdf", FileMode.Open, FileAccess.Read);&lt;/P&gt;&lt;P&gt;&amp;nbsp; contentStream.Stream = fs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; VersioningState vs = VersioningState.Major;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ........&lt;/P&gt;&lt;P&gt;&amp;nbsp; folder1.CreateDocument(properties, contentStream, vs);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2016 08:04:17 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2016-10-10T08:04:17Z</dc:date>
    <item>
      <title>How to upload document on user created folder using dotcmis dll</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-upload-document-on-user-created-folder-using-dotcmis-dll/m-p/311711#M264841</link>
      <description>I am trying to upload file on custom created folder by user or shared folder in alfresco but every time while uploading document it goes and upload on root&amp;nbsp; folder how can i change folder or i can upload folder by object id of folder using dotcmis folder.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dictionary&amp;lt;string, string&amp;gt; parame</description>
      <pubDate>Mon, 10 Oct 2016 06:57:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-upload-document-on-user-created-folder-using-dotcmis-dll/m-p/311711#M264841</guid>
      <dc:creator>shivtechno</dc:creator>
      <dc:date>2016-10-10T06:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload document on user created folder using dotcmis dll</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-upload-document-on-user-created-folder-using-dotcmis-dll/m-p/311712#M264842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Repository id refers to that Alfresco repository instance id. It is not for particular folder within alfresco.&amp;nbsp; For instance if you have two different instance of Alfresco repository running you can point to specific repo just by changing this id.&amp;nbsp; Each repository has their own unique repository id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In code I see you are accessing root folder &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; IFolder folder = session.GetRootFolder();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;You must be using that folder while uploading file as a destination location. Seems like you have not posted full code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 07:44:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-upload-document-on-user-created-folder-using-dotcmis-dll/m-p/311712#M264842</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2016-10-10T07:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload document on user created folder using dotcmis dll</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-upload-document-on-user-created-folder-using-dotcmis-dll/m-p/311713#M264843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use session.GetObjectByPath（） or session.GetObject to get the IFolder object ,and use CreateDocument mehtod of IFolder to upload document to that folder,&lt;/P&gt;&lt;P&gt;for exmple using GetObjectByPath()&lt;/P&gt;&lt;P&gt;&amp;nbsp; IFolder folder1 = (IFolder)session.GetObjectByPath("/TESTFOLDER1");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dictionary&amp;lt;string, object&amp;gt; properties = new Dictionary&amp;lt;string, object&amp;gt;();&lt;/P&gt;&lt;P&gt;&amp;nbsp; properties[PropertyIds.ObjectTypeId] = "cmis:document";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ContentStream contentStream = new ContentStream();&lt;/P&gt;&lt;P&gt;&amp;nbsp; FileStream fs = new FileStream("D:\\*****.pdf", FileMode.Open, FileAccess.Read);&lt;/P&gt;&lt;P&gt;&amp;nbsp; contentStream.Stream = fs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; VersioningState vs = VersioningState.Major;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ........&lt;/P&gt;&lt;P&gt;&amp;nbsp; folder1.CreateDocument(properties, contentStream, vs);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 08:04:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-upload-document-on-user-created-folder-using-dotcmis-dll/m-p/311713#M264843</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-10-10T08:04:17Z</dc:date>
    </item>
  </channel>
</rss>

