Hi Branden, Thanks for your reply.
Your solution works very well, but what I am after is not only for mp3. You don't know what kind of file user (administrator or editor) will upload, so even I add more mime types, I still have the same problem. One thing puzzles me is: Application server (for me, it's Tomcat) has already defined many mime types, why don't use them instead of creating a new list? We can get mime type by invoking ServletContext.getMimeType(filename) . Another issue is: Magnolia uses mime type text/html for unknown file type, which causes browser trying to display the file (in most situation, it's a binary file). If the default mime type for unknown file type is application/octet-stream, maybe will be better? Cheers, Richard ([EMAIL PROTECTED]) On 3/7/06, Branden Root <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Richard, > > The easiest way to solve this is to create a mime type mapping for > the mp3 file. You can do this by going into the Config/server/ > MIMEmapping section in the magnolia backend. Right click on the > MIMEMapping node and click New Content Node. Name it mp3. Right click > on it and click new node data. Name it extension, and give it the > value of mp3. Do the same again for a node data called mime-type, and > give it the value audio/mpeg (correct me anybody if this is the wrong > mime type). After this you're all set. > > As far as the save/open with default application, thats a function > of the browser, not the server or Magnolia. All you can do is set the > MIME type and let the browser do the rest, or provide a link with > text instructions to right click, save as. > > > Branden Root > Senior Developer > Portent Interactive > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (Darwin) > > iD8DBQFEDQ7juw5IURuim6YRAvM0AJ4qHu9dCDlWZvlzwYvv664oiBJDyACggNUS > 1CQIKUY0VK9Ny8Tu3xA2YWE= > =Klha > -----END PGP SIGNATURE----- > > ---------------------------------------------------------------- > for list details see > http://www.magnolia.info/en/magnolia/developer.html > ---------------------------------------------------------------- > ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
