Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateUploadedImageFilename ¶
ValidateUploadedImageFilename validates an uploaded filename's base part and returns the base and extension. Rules: - base must match ^[a-zA-Z0-9_-]+$ - base length <= 100 - if base length < 4, it must not be in the reserved list (CON, PRN, AUX, NUL, COM, LPT)
Types ¶
type FilenameValidationError ¶
FilenameValidationError provides a stable error code for HTTP mapping.
func (*FilenameValidationError) Error ¶
func (e *FilenameValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.