ValidateAssetFileTypeUseCase

Returns true if the file extension is present in file name and is allowed and false otherwise.

Parameters

fileName

the file name (with extension) to validate.

allowedExtension

the list of allowed extension.

Inheritors

Functions

Link copied to clipboard
abstract operator fun invoke(fileName: String?, mimeType: String, allowedExtension: List<String>): Boolean