mimetype

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUploadedFileMIMEs

func GetUploadedFileMIMEs(file multipart.File, header *multipart.FileHeader) (string, string, error)

GetUploadedFileMIMEs returns (clientMime, detectedMime)

func IsExtensionValidForMIME

func IsExtensionValidForMIME(ext string, mimeType string) bool

IsExtensionValidForMIME validates extension against mime type

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL