cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading visio files

pierre_smits
Champ in-the-making
Champ in-the-making
I am using Community Network - v2.0.0 (build-185)

When I upload a MS Visio file I see in the general properties that it has content type 'octect stream'.

How can I change that to the mime type assiociated with visio files (if there is one) and the appropriate image?

Regards,

Pierre
4 REPLIES 4

back0rifice
Champ in-the-making
Champ in-the-making
What I did was adding the following lines to "mimetype-map.xml":

<mimetype mimetype="application/visio.vnd" display="MS Visio Drawing">
   <extension>vsd</extension>
</mimetype>

But I'm not quite sure if there are any further step necessary.

kevinr
Star Contributor
Star Contributor
That is enough to register the mimetype yes. To add images for the filetype, you need to find/create a 16x16 and 32x32 GIF image for it, and add them to the folders:
\tomcat\webapps\alfresco\images\filetypes
\tomcat\webapps\alfresco\images\filetypes32

Thanks,

Kevin

pierre_smits
Champ in-the-making
Champ in-the-making
I guess that when I upgrade or redeploy the war these additions get overwritten?

Rgds

Pierre

kevinr
Star Contributor
Star Contributor
Yes, however you are welcome to contribute the changes if there are no copyright issues with the images you are using.

Thanks,

Kevin