<?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 new version upload breaks preview functionality in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/new-version-upload-breaks-preview-functionality/m-p/303272#M256402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am testing Alfresco v4.2.1. (from the windows 32 installer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;two scenarios:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When uploading a file (pdf) for the first time it is showing a preview allright.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When uploading a new version. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The preview becomes unavailable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When uploading a file (pdf) for the first time it is showing a preview allright.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When editing off line followed by uploading a new version. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The preview becomes unavailable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone an idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 12:25:05 GMT</pubDate>
    <dc:creator>pieter_shimanow</dc:creator>
    <dc:date>2014-09-23T12:25:05Z</dc:date>
    <item>
      <title>new version upload breaks preview functionality</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-version-upload-breaks-preview-functionality/m-p/303272#M256402</link>
      <description>I am testing Alfresco v4.2.1. (from the windows 32 installer)two scenarios:When uploading a file (pdf) for the first time it is showing a preview allright.When uploading a new version. The preview becomes unavailable.When uploading a file (pdf) for the first time it is showing a preview allright.Whe</description>
      <pubDate>Tue, 23 Sep 2014 12:25:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-version-upload-breaks-preview-functionality/m-p/303272#M256402</guid>
      <dc:creator>pieter_shimanow</dc:creator>
      <dc:date>2014-09-23T12:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: new version upload breaks preview functionality</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-version-upload-breaks-preview-functionality/m-p/303273#M256403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i guess you are using firefox, we had the same problem at one of our clients. Have a look at &lt;/SPAN&gt;&lt;A href="https://support.mozilla.org/en-US/kb/set-how-firefox-handles-different-file-types" rel="nofollow noopener noreferrer"&gt;https://support.mozilla.org/en-US/kb/set-how-firefox-handles-different-file-types&lt;/A&gt;&lt;SPAN&gt; in your browser and look for Adobe Acrobat Document (application/force-download).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is that through certain circumstances this mimetype mapping gets into your browser, so the mechanism is that if you upload a document for the first time alfresco relies on the document extension (pdf) for simple document formats to guess the mimetyp, but if you upload the document as new version alfresco relies on the mimetype the browser sets in the request, and this i guess is application/force-download in your case, so after the reupload the document cannot be previewed. The problem is that in earlier versions they relied on tika to guess the mimetype which was a quite a performance consuming operation and later optimized it by this "fix" (ALF-10813) that results in the behavior you experiencing now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as "fix" you could use an other browser than firefox, you can fix the document if you rename the document (change the extension) and then change it back, its also relatively easy to fix it in code if you have the people to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is also a link to a ticket describing the problem &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-19688" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-19688&lt;/A&gt;&lt;SPAN&gt; (ticket is not from me but i have reported the problem too)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hannes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:14:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-version-upload-breaks-preview-functionality/m-p/303273#M256403</guid>
      <dc:creator>hgindl</dc:creator>
      <dc:date>2014-09-30T20:14:00Z</dc:date>
    </item>
  </channel>
</rss>

