toInputFile

fun ByteArray.toInputFile(fileName: String = DEFAULT_FILENAME, contentType: String = getContentType()): InputFile
fun File.toInputFile(fileName: String = name.ifEmpty { DEFAULT_FILENAME }, contentType: String? = null): InputFile