ginupload

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: CC0-1.0 Imports: 8 Imported by: 0

README

A simple file uploader for Go Gin framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUploadProgressHandler

func GetUploadProgressHandler(uploadDir string) gin.HandlerFunc

Retrive uploading progress

func UploadHandler

func UploadHandler(uploadDir string) gin.HandlerFunc

Types

type UploadForm

type UploadForm struct {
	Filename   string                `form:"filename"`
	ChunkIndex uint64                `form:"chunk_index"`
	Chunks     uint64                `form:"chunks"`
	File       *multipart.FileHeader `form:"file"`
}

Jump to

Keyboard shortcuts

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