cancel
Showing results for 
Search instead for 
Did you mean: 

Dropped PDF files appear as "plain" files.

OlivierM_
Star Contributor
Star Contributor

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?

1 ACCEPTED ANSWER

OlivierM_
Star Contributor
Star Contributor

Ok, here is a little summary on the problem, I'm about to find the solution.

  1. It's clearly on my side, and not on Nuxeo's.
  2. It has to do with my Firefox profile. Other profiles or other browsers don't have the problem.
  3. While it should send PDFs with the right MIME type, it sends them as application/force-download

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.

View answer in original post

12 REPLIES 12

I got

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".

OlivierM_
Star Contributor
Star Contributor

Ok, here is a little summary on the problem, I'm about to find the solution.

  1. It's clearly on my side, and not on Nuxeo's.
  2. It has to do with my Firefox profile. Other profiles or other browsers don't have the problem.
  3. While it should send PDFs with the right MIME type, it sends them as application/force-download

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.

Getting started

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.