<?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: Update Mimetype from Unknown to text/plain in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67574#M22526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm... Maybe my memory was incorrect and such an action does not exist out-of-the-box. In that case you would have to create a small JavaScript file in Data Dictionary -&amp;gt; Scripts to set the mimetype which you can then use via the "Execute script" action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2019 09:30:22 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2019-01-03T09:30:22Z</dc:date>
    <item>
      <title>Update Mimetype from Unknown to text/plain</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67571#M22523</link>
      <description>Hi All,Please help in providing the steps to covert all unknown Mimetype documents to text/plain.&amp;nbsp; &amp;nbsp;I did the following steps but it is not getting updated.&amp;nbsp; Please help if i am missing anything.</description>
      <pubDate>Thu, 03 Jan 2019 08:39:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67571#M22523</guid>
      <dc:creator>rjgowrishankar</dc:creator>
      <dc:date>2019-01-03T08:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Update Mimetype from Unknown to text/plain</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67572#M22524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use a rule to set the CMIS contentStreamMimetype pseudo property. This property does not actually exist - it has only been defined to support the CMIS interface integration. Instead of using the "Set property value" action you should use the "Change/Set mimetype" action instead.&lt;/P&gt;&lt;P&gt;Also note that for *.msg files the mimetype text/plain is certainly not the correct mimetype, and&amp;nbsp;Alfresco will not be able to properly display such emails nor index them correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 09:15:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67572#M22524</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-01-03T09:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update Mimetype from Unknown to text/plain</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67573#M22525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;Thanks for your reply, but unable to find such a option "Change/Set Mimetype" action.&amp;nbsp; I am able to see only the below options.&amp;nbsp; Please suggest if we need to activate anything to get this option.&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/24733_pastedImage_1.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Continued&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG class="image-2 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24734_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 09:24:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67573#M22525</guid>
      <dc:creator>rjgowrishankar</dc:creator>
      <dc:date>2019-01-03T09:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update Mimetype from Unknown to text/plain</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67574#M22526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm... Maybe my memory was incorrect and such an action does not exist out-of-the-box. In that case you would have to create a small JavaScript file in Data Dictionary -&amp;gt; Scripts to set the mimetype which you can then use via the "Execute script" action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 09:30:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67574#M22526</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-01-03T09:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update Mimetype from Unknown to text/plain</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67575#M22527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure will try that, I have not created any script till now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please guide me with the exact parameter which is related to Mimetype, will try updating it.&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 10:35:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67575#M22527</guid>
      <dc:creator>rjgowrishankar</dc:creator>
      <dc:date>2019-01-03T10:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update Mimetype from Unknown to text/plain</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67576#M22528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check &lt;A href="https://docs.alfresco.com/6.0/references/API-JS-ScriptNode.html" rel="nofollow noopener noreferrer"&gt;ScriptNode API&lt;/A&gt; for details. The simplest possible script would just be a single line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document.properties.content.mimetype = 'text/plain';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 11:32:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67576#M22528</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-01-03T11:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update Mimetype from Unknown to text/plain</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67577#M22529</link>
      <description>&lt;P&gt;There is a java code alternative for this ?&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;FormData data = new FormData();&lt;/SPAN&gt;&lt;BR /&gt;data.addFieldData("prop_mimetype", mimetype, true);
Item itemMimetype = new Item("node", nodeRef.toString());
NodeRef nodeRefFoundedUpdated = (NodeRef)formService.saveForm(itemMimetype, data);&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and this:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;ContentWriter contentWriter = &lt;SPAN&gt;contentService.getWriter(nodeRef, ContentModel.PROP_CONTENT, true);&lt;/SPAN&gt;
if(contentWriter != null) {
	contentWriter.setMimetype(mimetype);
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;but is not working is still a "application/octet-stream" value on alfresco share&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Jun 2024 14:38:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-from-unknown-to-text-plain/m-p/67577#M22529</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2024-06-04T14:38:36Z</dc:date>
    </item>
  </channel>
</rss>

