<?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 Auto-set mimetype for files added via CIFS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/auto-set-mimetype-for-files-added-via-cifs/m-p/278480#M231610</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 would like to auto-set the mimetype for files that are uploaded via the CIFS file share. For example, all files dropped in the "textfiles" folder should have their mimetype set to "text/plain". I did this through the Share/UI by using a custom JavaScript that is run in a rule, but that doesn't apply to files added through CIFS. Here is what I did in the javascript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;document.mimetype = "text/plain";&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a similar way to do this for files added through CIFS?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 02:05:00 GMT</pubDate>
    <dc:creator>etech</dc:creator>
    <dc:date>2013-05-15T02:05:00Z</dc:date>
    <item>
      <title>Auto-set mimetype for files added via CIFS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/auto-set-mimetype-for-files-added-via-cifs/m-p/278480#M231610</link>
      <description>Hi,I would like to auto-set the mimetype for files that are uploaded via the CIFS file share. For example, all files dropped in the "textfiles" folder should have their mimetype set to "text/plain". I did this through the Share/UI by using a custom JavaScript that is run in a rule, but that doesn't</description>
      <pubDate>Wed, 15 May 2013 02:05:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/auto-set-mimetype-for-files-added-via-cifs/m-p/278480#M231610</guid>
      <dc:creator>etech</dc:creator>
      <dc:date>2013-05-15T02:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-set mimetype for files added via CIFS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/auto-set-mimetype-for-files-added-via-cifs/m-p/278481#M231611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the cause why this doesn't work (in CIFS) may be that the mimetype is later reset by the system to the correct mimetype based on file inspection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would you want to explicitly set a mimetype when the file can be of any type? Forcing an incompatible mimetype can lead to Alfresco not working with those files as expected, i.e. full text indexing, preview…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 07:21:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/auto-set-mimetype-for-files-added-via-cifs/m-p/278481#M231611</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-05-15T07:21:13Z</dc:date>
    </item>
  </channel>
</rss>

