FilePart is used to transfer binary content from a File.
See docLib for details. See docCookbook for coding examples.
Slots
- encodeSource
-
override Void encode(OutStream out)
Overrides email::EmailPart.encode
Encode as a MIME message according to RFC 822.
- fileSource
-
File? file
File content
- makeSource
-
new make()
Construct with default type of "text/plain".
- validateSource
-
override Void validate()
Overrides email::EmailPart.validate
Validate this part - throw Err if not configured correctly:
- file must be non-null
- if Content-Type not set, defaults to file.mimeType
- if Content-Type name param not set, defaults to file.name
- Content-Transfer-Encoding must be base64