cancel
Showing results for 
Search instead for 
Did you mean: 

Uploaded documents assigned octetstream mimetype

mthome
Champ in-the-making
Champ in-the-making
I uploaded several thousand documents, mainly pdf and jpg, to a new alfresco-3.4.c installation using webdav from a windows machine.  The documents are all there, but were all assigned a mimetype of octetstream rather than the correct mimetype based on extension (acrobat or jpeg).  This has resulted in a big, unindexable document tree without previews.  I can manually set the correct mime types, but this is obviously unrealistic for 3000 files.

Questions:
1. how can I avoid this in the future?  All the filenames are correct (e.g. "Foo.pdf") - when I upload files as "Foo.PDF" it works correctly - this seems awfully backward, especially when the mimetype-map.xml lists all the extensions properly in lowercase.
2. how can I fix the mimetypes in bulk within alfresco?

Thanks
4 REPLIES 4

gnyce
Champ in-the-making
Champ in-the-making
good question - re: No 2, I think on the upgrade (at least for us, 3.3g –> 3.4c), they run a script that says "fix mime types for ms excel and ms powerpoint".  So it looks like it can be done.  Maybe that is enough for you to track down??  Sorry, have no more help than that…

mthome
Champ in-the-making
Champ in-the-making
Interestingly, if I upload documents from linux (to the same webdav!) instead of from windows, it works right the first time.  As much as it makes me cringe, I'm considering walking the tree from linux, copying each pdf/etc file out of the dav, deleting the original and copying it back in.  Horrible, but it does seem to work.

joran
Champ in-the-making
Champ in-the-making
I am having the same problem, seems to be a problem with flash (I'm using SWFUpload in a custom interface to uplaod to aflresco), it marks every upload as mimetype octet-stream. Still looking for a simple fix here..

stevegreenbaum
Champ in-the-making
Champ in-the-making
I've bumped into this issue previously, but thought this issue was fixed for 3.4d – http://issues.alfresco.com/jira/browse/ALF-6560