{"modulePath":"github.com/RedAFD/code-core","version":"v1.14.0-rc8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package upload\n\n## Functions\n\n```go\nfunc AddUploadContext(ctx *context.Context, uploadType string)\n```\nAddUploadContext renders template values for dropzone\n\n```go\nfunc IsErrFileTypeForbidden(err error) bool\n```\nIsErrFileTypeForbidden checks if an error is a ErrFileTypeForbidden.\n\n```go\nfunc Verify(buf []byte, fileName string, allowedTypesStr string) error\n```\nVerify validates whether a file is allowed to be uploaded.\n\n## Types\n\n```go\ntype ErrFileTypeForbidden struct {\n\tType string\n}\n```\nErrFileTypeForbidden not allowed file type error\n\n```go\nfunc (err ErrFileTypeForbidden) Error() string\n```\n\n","path":"github.com/RedAFD/code-core/modules/upload","name":"upload","synopsis":"","isRedistributable":true}
