uploadFile

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadTools

type UploadTools struct {
	MaxFileSize      int
	AllowedFileTypes []string
}

func (*UploadTools) UploadFiles

func (t *UploadTools) UploadFiles(r *http.Request, uploadDir string, rename ...bool) ([]*UploadedFile, error)

func (*UploadTools) UploadOneFile

func (t *UploadTools) UploadOneFile(r *http.Request, uploadDir string, rename ...bool) (*UploadedFile, error)

type UploadedFile

type UploadedFile struct {
	NewFileName      string
	OriginalFileName string
	FileSize         int64
}

Jump to

Keyboard shortcuts

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