Comments: Media Views

By sotin 1 week, 6 days ago

1 - Modify acceptable mime types?

What is the best way to add an mime type to the 'acceptable' mime types list? I haven't been able to find anything aside from editing cake\libs\view\media.php, which I do not want to do for obvious reasons. Extending the MediaView class also seems a little excessive just to add one mime type.

I am trying to add xlsx download support (application/vnd.openxmlformats)

Thanks!

By kurisu_rs 1 week, 1 day ago

2 - Acceptable MIME types are declared in web server

For Apache the acceptable MIME types are given in [apache root]\conf\mime.types or alternatively you can specify in [apache root]\conf\httd.conf with AddType directive; e.g.

AddType application/vnd.openxmlformats xlsx

By sotin 1 week, 1 day ago

3 - Moved to cakephp google group

This seems like the wrong place to start a discussion so created a thread in the cakephp google group about acceptable mime types instead...

http://groups.google.com/group/cake-php/browse_thread/thread/6f4ae35320467d32