upload

package
v0.0.0-...-3deae0f Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRequest

func CreateRequest(url string, r io.Reader, filename string, payload interface{}) (*http.Request, error)

CreateRequest prepares a upload request this is multipart content upload which let's you send payload data

func Parse

func Parse(r *http.Request, payload interface{}) (io.ReadCloser, error)

Parse accepts payload which parsed form values inside payload field and returns ReadCloser which refers to given file Note that return ReadCloser object needs to be closed

Types

This section is empty.

Jump to

Keyboard shortcuts

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