Documentation
¶
Overview ¶
Package filecheck provides mail attachment file validation utilities shared by the emlbuilder and draft packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBlockedExtension ¶
CheckBlockedExtension returns an error if the filename has a blocked extension.
func CheckInlineImageFormat ¶
CheckInlineImageFormat validates that the file is an allowed inline image format by checking both extension and content-sniffed MIME type. Both must match the whitelist to prevent extension spoofing and MIME forgery. On success it returns the detected MIME type; callers MUST use this as the final Content-Type instead of trusting any user-supplied or inherited value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.