Any questions about Documents Sellers, post it here .

Wrong Mimetype?

  • HAROLD WILLIAMS
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #24478 by HAROLD WILLIAMS
Wrong Mimetype? was created by HAROLD WILLIAMS
Hi,
When uploading files using Document Seller I noticed the iTunes m4a files had a mimetype of application/octet-stream. It should have been audio/x-m4a.
Regards.
Harold

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #24708 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Wrong Mimetype?
Hi Harold

You can edit code alitle to make it have the correct mime type. The steps are :

1. Open the file administrator/components/com_dms/class/mime.mapping.php

2. Add a new element to the array (hope you know php alitle)
Code:
'm4a' => 'audio/x-m4a'

After that, it should work as expected.

Tuan

Please Log in or Create an account to join the conversation.