upload

package
v0.0.0-...-b4a383b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeDownloadFilename

func DecodeDownloadFilename(res *http.Response) string

DecodeDownloadFilename decodes the filename from the http response or empty.

func NewUploadRequest

func NewUploadRequest(ctx context.Context, uri string, path, fileFieldName string,
	extraParams map[string]string,
) (*http.Request, error)

NewUploadRequest Creates a new file Upload http request with optional extra params.

func Upload

func Upload(ctx context.Context, uri, path, fileFieldName string,
	extraParams map[string]string,
) (*bytes.Buffer, string, error)

Upload uploads to uri with the file specified in path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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