public/content/plugins/seriously-simple-podcasting/assets/js/fileupload.js
/**
	 * Checks if a file type is valid audio or video
	 * @param file
	 * @returns {boolean}
	 */
Checks if a file type is valid audio or video
@param file
@returns {boolean}
Checks if a file type is valid audio or video @param file @returns { boolean }
function isFileAllowed( file ) {
		var fileType = file.type;
		var fileTypeParts = fileType.split( "/" );
		var isValid = false;
		if ( 'audio' == fileTypeParts[ 0 ] || 'video' == fileTypeParts[ 0 ] ) {
			isValid = true;
		}
		return isValid;
	}
function isFileAllowed ( file ) { var fileType = file . type ; var fileTypeParts = fileType . split ( "/" ) ; var isValid = false ; if ( 'audio' == fileTypeParts [ 0 ] || 'video' == fileTypeParts [ 0 ] ) { isValid = true ; } return isValid ; }
Checks if a file type is valid audio or video
 @param file
 @returns {boolean}
Checks if a file type is valid audio or video @param file @returns { boolean }