upload

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UntarDirectory

func UntarDirectory(upDir string, w http.ResponseWriter, r *http.Request)

Untar directory from http request (dl it, untar it, remove it)

func UploadFile

func UploadFile(upDir string, w http.ResponseWriter, r *http.Request)

Upload binary file <= 32Mb and return byte content Note: upload with curl -X POST -F "file=@[BINARY_FILENAME]" http://[TARGET_IP:PORT]/push

Types

This section is empty.

Jump to

Keyboard shortcuts

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