gitea: code.gitea.io/gitea/modules/upload Index | Files

package upload

import "code.gitea.io/gitea/modules/upload"

Index

Package Files

filetype.go

func IsErrFileTypeForbidden Uses

func IsErrFileTypeForbidden(err error) bool

IsErrFileTypeForbidden checks if an error is a ErrFileTypeForbidden.

func VerifyAllowedContentType Uses

func VerifyAllowedContentType(buf []byte, allowedTypes []string) error

VerifyAllowedContentType validates a file is allowed to be uploaded.

type ErrFileTypeForbidden Uses

type ErrFileTypeForbidden struct {
    Type string
}

ErrFileTypeForbidden not allowed file type error

func (ErrFileTypeForbidden) Error Uses

func (err ErrFileTypeForbidden) Error() string

Package upload imports 4 packages (graph) and is imported by 4 packages. Updated 2019-08-21. Refresh now. Tools for package owners.