init(path:mime:)

Create an attachment source from a local file path and MIME type.

init(path: String, mime: String)

Parameters

path

path to the local file

mime

MIME type to advertise for the upload