12-14-2011 01:12 PM
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.
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...
Question is : is this supposed to happen?
12-15-2011 12:52 PM
Ok, here is a little summary on the problem, I'm about to find the solution.
Found a little bit of information about that kind of problem here : http://techblog.procurios.nl/k/news/view/15872/14863/Mimetype-corruption-in-Firefox.html
So I looked into my mimeTypes.rdf, and found this :
<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"> <NC:handlerProp RDF:resource="urn:mimetype:handler:application/force-download"/> </RDF:Description>
I'm not sure yet where it comes from, but I'm pretty sure deleting this RDF triple could to the trick. Testing it...
Edit: 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.
12-14-2011 02:16 PM
No it's not, and it works all right for me. What platform are you on? Does your PDF have a proper .pdf extension?
12-15-2011 06:11 AM
Yes they does. Is this supposed to work on file extension?
12-15-2011 07:46 AM
Same here. No problem of this sort on the 2 clean instals I just did.
12-15-2011 08:01 AM
Did you install drag'n drop extension or did you use the HTML5 ones ?
If you download the file drag'n dropped, do you find your document ?
Can you add in your $TOMCAT/lib/log4j.xml after this:
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false" threshold="null">
with this following lines:
<appender name="TMP" class="org.apache.log4j.DailyRollingFileAppender">
<errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler" />
<param name="File" value="${nuxeo.log.dir}/tmp.log" />
<param name="Append" value="true" />
<!-- Rollover at midnight every day -->
<param name="DatePattern" value="'.'yyyy-MM-dd" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c] %m%n" />
</layout>
</appender>
<category name="org.nuxeo.ecm.platform.filemanager">
<level>DEBUG</level>
<appender-ref ref="TMP" />
</category>
We will try to see which file manager you are using.
12-15-2011 09:12 AM
Thanks for your answer. First of all, I'm using the native way (HTML5, NOT the extension).
12-15-2011 11:40 AM
When I import a PDF I get
12-15-2011 11:51 AM
Whoops, this is Win XP and FF 8.
12-15-2011 12:12 PM
Ok the truncation is not the issue. When I add a PDF with a long name I get for instance
12-15-2011 12:12 PM
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
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.