core/features/content/common/src/jsMain/kotlin/dev/inmo/postssystem/features/content/common/BinaryContentFromFile.kt

13 lines
362 B
Kotlin

package dev.inmo.postssystem.features.content.common
import dev.inmo.micro_utils.common.MPPFile
import dev.inmo.micro_utils.common.filename
import dev.inmo.postssystem.features.common.common.inputProvider
import dev.inmo.postssystem.features.common.common.mimeType
fun MPPFile.binaryContent() = BinaryContent(
filename,
mimeType,
inputProvider()
)