addFile

open fun addFile(name: String, contentProvider: ChannelProvider): NamedFile(source)

Adds a file with the name and contentProvider to the attachments.