<?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: Open CMIS and Java Upload for Custom Types in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69701#M22964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;B&gt;Angel Borroy&lt;/B&gt;I had actually looked at this documentation, but negated to notice the presence of the 'D:' to denote document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for anyone else out there who hits this issue in Alfresco, remember to add 'D:' i.e. :-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;props.put(PropertyIds.OBJECT_TYPE_ID, “D:dc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;CN”)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Nov 2018 11:31:15 GMT</pubDate>
    <dc:creator>bendavies</dc:creator>
    <dc:date>2018-11-18T11:31:15Z</dc:date>
    <item>
      <title>Open CMIS and Java Upload for Custom Types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69699#M22962</link>
      <description>Just downloaded latest community edition. Installed fine, UI working, documents uploading etc.Figured out how to use the Model Manager to create a ‘model’ called ‘Document’. Within this model I created a ‘custom type’ called ‘dc&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;CN’ with a display name of ‘PCN’. Against the custom type I created 2</description>
      <pubDate>Sat, 17 Nov 2018 22:17:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69699#M22962</guid>
      <dc:creator>bendavies</dc:creator>
      <dc:date>2018-11-17T22:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Open CMIS and Java Upload for Custom Types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69700#M22963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Jeff Potts&lt;/B&gt;‌ gathered a collection resources on CMIS:&amp;nbsp;&lt;A class="link-titled" href="https://ecmarchitect.com/cmis" title="https://ecmarchitect.com/cmis" rel="nofollow noopener noreferrer"&gt;CMIS Resource Center | ECM Architect&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To upload an create custom content types in Alfresco, refer&amp;nbsp;&lt;A class="link-titled" href="https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#creating-content-with-opencmis" title="https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#creating-content-with-opencmis" rel="nofollow noopener noreferrer"&gt;Working With Custom Content Types in Alfresco | ECMArchitect | Alfresco Developer Tutorials&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 09:16:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69700#M22963</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-11-18T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Open CMIS and Java Upload for Custom Types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69701#M22964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;B&gt;Angel Borroy&lt;/B&gt;I had actually looked at this documentation, but negated to notice the presence of the 'D:' to denote document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for anyone else out there who hits this issue in Alfresco, remember to add 'D:' i.e. :-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;props.put(PropertyIds.OBJECT_TYPE_ID, “D:dc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;CN”)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 11:31:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69701#M22964</guid>
      <dc:creator>bendavies</dc:creator>
      <dc:date>2018-11-18T11:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Open CMIS and Java Upload for Custom Types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69702#M22965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the links, Angel. Glad it seems to have helped, Ben!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 05:00:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69702#M22965</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-11-19T05:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Open CMIS and Java Upload for Custom Types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69703#M22966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all. Great to see the community works well. I have now completed coding the upload using OpenCMIS apart from the issue below. Thanks for the help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Honestly, I'm not sure if this is the right place to post for all the issues here, but I do think one relates to the upload via OpenCMIS. Wondering if any of you have any pearls of wisdom here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Chrome the PDF I upload via OpenCMIS looks fine. I can open the PDF whether it has come via OpenCMIS or browser upload. However in both Firefox and the latest iOS mobile app I have issues rendering the document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Firefox it happens all the time regardless of how I upload. It complains about 'Having no PDF content'. It then jumps to a Google Docs page. This happens whether I upload using Open CMIS or the browser upload functionality. See screen shot below. I therefore think this isn't OpenCMIS related, more browser specific so lets park that for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, on iOS Alfresco App I can render PDFs that have been uploaded via the web browser, but those I uploaded via OpenCMIS return a grey background with the file name i.e. 'Penalty Charge Notice {Rest of File Name} pm data' (see screen shot). This happens whether I use a custom type or not. So any PDF I upload with OpenCMIS will not render in the app. FYI - If I take the same file that was uploaded via OpenCMIS and upload manually via web UI, it works fine. It still works if then manually 'Change Type' in the web UI to the same one I am setting via CMIS upload. So its not a PDF issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This leads me to think I am missing something when I do the upload on OpenCMIS for the iOS rendering issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI I use the following to create the content stream, so the MIME should be set fine. I did a debug and its definitely setting this to 'application/pdf' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;ContentStream contentStream = s.getObjectFactory().createContentStream(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tmpDocFile.getName(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tmpDocFile.length(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MimeTypes.getMIMEType(tmpDocFile),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputStream&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a need to change or add to the properties I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chrome v70.0.3538.102 (Official Build) (64-bit) on Mac OS 10.12.6 (Sierra).&lt;/P&gt;&lt;P&gt;Firefox v63.0.3 (64-bit) on Mac OS 10.12.6 (Sierra).&lt;/P&gt;&lt;P&gt;Mobile Apple iOS 11.4.1 (15G77) with Alfresco App v2.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24222_pastedImage_3.png" /&gt;&amp;nbsp;&amp;nbsp; &lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/alfresco/24223_Screen Shot 2018-11-19 at 09.32.09.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 09:53:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69703#M22966</guid>
      <dc:creator>bendavies</dc:creator>
      <dc:date>2018-11-19T09:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Open CMIS and Java Upload for Custom Types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69704#M22967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a document is uploaded to Alfresco using Share client, a rendition in PDF format is generated. However, if you are using CMIS to upload documents, that rendition to PDF is not fired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are different approaches to solve this issue. Probably easier is to configure an Alfresco &lt;STRONG&gt;Rule&lt;/STRONG&gt; in the repository to &lt;STRONG&gt;Transform and Copy Contents&lt;/STRONG&gt; to PDF every time a new document is uploaded from CMIS Client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 11:06:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69704#M22967</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-11-19T11:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open CMIS and Java Upload for Custom Types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69705#M22968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Very new to Alfresco. Any guidance or documentation you could point me to on how to do this would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 11:13:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69705#M22968</guid>
      <dc:creator>bendavies</dc:creator>
      <dc:date>2018-11-19T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Open CMIS and Java Upload for Custom Types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69706#M22969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can define rules on a folder by using Alfresco Share web app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/tasks/library-folder-rules-define.html" title="http://docs.alfresco.com/community/tasks/library-folder-rules-define.html" rel="nofollow noopener noreferrer"&gt;Defining rules for a folder | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 11:22:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-cmis-and-java-upload-for-custom-types/m-p/69706#M22969</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-11-19T11:22:28Z</dc:date>
    </item>
  </channel>
</rss>

