files

package
v0.0.0-...-f23e644 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Zlib Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(w http.ResponseWriter, r *http.Request)

This function returns either the standard upload template, or a redirect to the File after it has been uploaded. It handles both of those cases to not use another url path and to make having errors render after issues easier.

func ViewFiles

func ViewFiles(w http.ResponseWriter, r *http.Request)

This function takes care of the view_files view. This view is for seeing which files have been uploaded using specific full(!) hash and deleting them. Initiating deletion flow depends on whether form values exist or not.

Types

type FileListData

type FileListData struct {
	AllowGenPage bool
	Error        string
	Feedback     string
	Files        []UploadedFile
	InstanceName string
	UserHash     string
}

File List Template Data struct

type UploadedFile

type UploadedFile struct {
	Name string
	URL  string
}

Jump to

Keyboard shortcuts

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