<?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: Dropped PDF files appear as &amp;quot;plain&amp;quot; files. in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326570#M13571</link>
    <description>&lt;P&gt;Ok the truncation is not the issue. When I add a PDF with a long name I get for instance&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2011 17:12:09 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2011-12-15T17:12:09Z</dc:date>
    <item>
      <title>Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326562#M13563</link>
      <description>&lt;P&gt;Whenever I drop (native method) a PDF document on my new 5.5 Nuxeo DM, it is uploaded as "binary" (default icon). Hence Preview failing.&lt;/P&gt;
&lt;P&gt;But when I import the same PDF file in the same space through the "Import file" feature, it appears with a nice PDF icon, preview works greats, and so on...&lt;/P&gt;
&lt;P&gt;Question is : is this supposed to happen?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 18:12:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326562#M13563</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-12-14T18:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326563#M13564</link>
      <description>&lt;P&gt;No it's not, and it works all right for me. What platform are you on? Does your PDF have a proper &lt;CODE&gt;.pdf&lt;/CODE&gt; extension?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:16:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326563#M13564</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-12-14T19:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326564#M13565</link>
      <description>&lt;P&gt;Yes they does. Is this supposed to work on file extension?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 11:11:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326564#M13565</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-12-15T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326565#M13566</link>
      <description>&lt;P&gt;Same here. No problem of this sort on the 2 clean instals I just did.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 12:46:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326565#M13566</guid>
      <dc:creator>Roland_Benedett</dc:creator>
      <dc:date>2011-12-15T12:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326566#M13567</link>
      <description>&lt;P&gt;Did you install drag'n drop extension or did you use the HTML5 ones ?&lt;/P&gt;
&lt;P&gt;If you download the file drag'n dropped, do you find your document ?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Can you add in your $TOMCAT/lib/log4j.xml after this:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false" threshold="null"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;with this following lines:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;appender name="TMP" class="org.apache.log4j.DailyRollingFileAppender"&amp;gt;
  &amp;lt;errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler" /&amp;gt;
  &amp;lt;param name="File" value="${nuxeo.log.dir}/tmp.log" /&amp;gt;
  &amp;lt;param name="Append" value="true" /&amp;gt;
  &amp;lt;!-- Rollover at midnight every day --&amp;gt;
  &amp;lt;param name="DatePattern" value="'.'yyyy-MM-dd" /&amp;gt;
  &amp;lt;layout class="org.apache.log4j.PatternLayout"&amp;gt;
    &amp;lt;param name="ConversionPattern" value="%d{ISO8601} %-5p [%c] %m%n" /&amp;gt;
  &amp;lt;/layout&amp;gt;
&amp;lt;/appender&amp;gt;

&amp;lt;category name="org.nuxeo.ecm.platform.filemanager"&amp;gt;
  &amp;lt;level&amp;gt;DEBUG&amp;lt;/level&amp;gt;
  &amp;lt;appender-ref ref="TMP" /&amp;gt;
&amp;lt;/category&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;restart your server&lt;/LI&gt;
&lt;LI&gt;do the drag'n drop action&lt;/LI&gt;
&lt;LI&gt;copy here the $Nuxeo/log/tmp.log content as comment here&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;We will try to see which file manager you are using.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:01:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326566#M13567</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2011-12-15T13:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326567#M13568</link>
      <description>&lt;P&gt;Thanks for your answer. First of all, I'm using the native way (HTML5, NOT the extension).&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 14:12:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326567#M13568</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-12-15T14:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326568#M13569</link>
      <description>&lt;P&gt;When I import a PDF I get&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 16:40:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326568#M13569</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-12-15T16:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326569#M13570</link>
      <description>&lt;P&gt;Whoops, this is Win XP and FF 8.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 16:51:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326569#M13570</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-12-15T16:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326570#M13571</link>
      <description>&lt;P&gt;Ok the truncation is not the issue. When I add a PDF with a long name I get for instance&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 17:12:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326570#M13571</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-12-15T17:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326571#M13572</link>
      <description>&lt;P&gt;So apparently the MIME type passed during the drop is incorrect. Could you run a network trace with Wireshark here to find out what's sent by Firefox to Nuxeo? You should see a&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 17:12:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326571#M13572</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-12-15T17:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326572#M13573</link>
      <description>&lt;P&gt;I got&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 17:32:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326572#M13573</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-12-15T17:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326573#M13574</link>
      <description>&lt;P&gt;It works on FF8 on Seven with a new profile. Not sure yet whether it's XP or the profile, but I'd say "the profile".&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 17:38:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326573#M13574</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-12-15T17:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped PDF files appear as "plain" files.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326574#M13575</link>
      <description>&lt;P&gt;Ok, here is a little summary on the problem, I'm about to find the solution.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;It's clearly on my side, and not on Nuxeo's.&lt;/LI&gt;
&lt;LI&gt;It has to do with my Firefox profile. Other profiles or other browsers don't have the problem.&lt;/LI&gt;
&lt;LI&gt;While it should send PDFs with the right MIME type, it sends them as application/force-download&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Found a little bit of information about that kind of problem here : &lt;A href="http://techblog.procurios.nl/k/news/view/15872/14863/Mimetype-corruption-in-Firefox.html" target="test_blank"&gt;http://techblog.procurios.nl/k/news/view/15872/14863/Mimetype-corruption-in-Firefox.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So I looked into my mimeTypes.rdf, and found this :&lt;/P&gt;
&lt;P&gt;&amp;lt;RDF:Description RDF:about="urn:mimetype:application/force-download"
NC:fileExtensions="pdf"
NC:description="Adobe Acrobat 7.0 Document"
NC:value="application/force-download"
NC:editable="true"&amp;gt;
&amp;lt;NC:handlerProp RDF:resource="urn:mimetype:handler:application/force-download"/&amp;gt;
&amp;lt;/RDF:Description&amp;gt;&lt;/P&gt;
&lt;P&gt;I'm not sure yet where it comes from, but I'm pretty sure deleting this RDF triple could to the trick. Testing it...&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;: tested it ok, it works. If anyone stumbles onto the same problem, just delete the RDF triple linking your filetype to application/force-download in mimeTypes.rdf (in your FF profile), and you should be going.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 17:52:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/dropped-pdf-files-appear-as-quot-plain-quot-files/m-p/326574#M13575</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-12-15T17:52:25Z</dc:date>
    </item>
  </channel>
</rss>

