fromFile

fun fromFile(file: File, contentType: String = guessContentType(file.name)): UploadSource

Creates a replayable source whose version tag reflects file size and timestamp.