Jump to content

IPS 4.6.10: « M4A » audio file missing in \IPS\File


Go to solution Solved by Marc,

Recommended Posts

Posted

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!

Posted

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.

 

Posted

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;
}

 

Posted
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

  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...