upload

package
v0.0.0-...-e39b2f3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFileTypeNotAllowed file type not allowed
	ErrFileTypeNotAllowed = errors.New("file type not allowed")
)

Functions

func CheckIfTheAllowedFileType

func CheckIfTheAllowedFileType(file multipart.File, allowedFiletype []string) error

CheckIfTheAllowedFileType check if the allowed file type

Types

This section is empty.

Jump to

Keyboard shortcuts

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