apps/gallery/lib/Service/ConfigService.php
/**
	 * Throws an exception if the media type of the file is not part of what the app allows
	 *
	 * @param $mimeType
	 *
	 * @throws ForbiddenServiceException
	 */
Throws an exception if the media type of the file is not part of what the app allows
@param $mimeType


Throws an exception if the media type of the file is not part of what the app allows @param $mimeType
public function validateMimeType($mimeType) {
		if (!in_array($mimeType, $this->getSupportedMediaTypes(true, true))) {
			throw new ForbiddenServiceException('Media type not allowed');
		}
	}
public function validateMimeType ( $ mimeType ) { if ( ! in_array ( $ mimeType , $ this -> getSupportedMediaTypes ( true , true ) ) ) { throw new ForbiddenServiceException ( 'Media type not allowed' ) ; } }
Throws an exception if the media type of the file is not part of what the app allows
 @param $mimeType
Throws an exception if the media type of the file is not part of what the app allows @param $mimeType