Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 16, 20223 yr Hi Invision, M4A files are the audio counterparts of MP4 files for video. They are HTML5 compatible and work natively in browsers. Also, in \IPS\File, you should add 'm4a' to: public static $safeFileExtensions public static $audioExtensions And in $fileIconMap : 'm4a' => 'file-audio-o', Thank you!
February 16, 20223 yr Community Expert Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.
February 16, 20223 yr Author Hi Marc, Thank you! Oh, and I forgot, it also needs to be added in the ips.ui.uploader.js javascript: line 14: var iconMap: … 'm4a': 'file-audio-o', … line 915: if( [ 'mp3', 'ogg', 'wav', 'm4a' ].indexOf( file.name.substr( ( ~-file.name.lastIndexOf(".") >>> 0 ) + 2 ).toLowerCase() ) !== -1 ){ isAudio = true; }
February 16, 20223 yr Community Expert 3 minutes ago, LaCollision said: Hi Marc, Thank you! Oh, and I forgot, it also needs to be added in the ips.ui.uploader.js javascript: line 14: var iconMap: … 'm4a': 'file-audio-o', … line 915: if( [ 'mp3', 'ogg', 'wav', 'm4a' ].indexOf( file.name.substr( ( ~-file.name.lastIndexOf(".") >>> 0 ) + 2 ).toLowerCase() ) !== -1 ){ isAudio = true; } Thats ok. Our devs will pick up anywhere else its needed
April 5, 20223 yr Community Expert Solution This issue has been resolved in 4.6.12, which has just been release. Please let us know if you still have any issues once you have upgraded to that release.