ctxparser

package
v0.0.0-...-2a3db7f Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// Name is the key value of the file in the multipart form data.
	Name string
	// FileName is the name of the file.
	FileName string
	// Data is the binary data of the file.
	Data []byte
}

File represents a file parsed from multipart form data.

func ParseMultipartFormDataFiles

func ParseMultipartFormDataFiles(c *gin.Context, formFileFieldKey string) ([]File, error)

ParseMultipartFormDataFiles parses one or more files from a gin.Context's multipart form data's specified File field entry.

Jump to

Keyboard shortcuts

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