fileinput

package module
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileType added in v0.0.14

func FileType() *model.Input

func SavedMode added in v0.0.15

func SavedMode() *model.Input

Types

type File

type File struct {
	//table
	Id_file     string `Legend:"File Id" Input:"InputPK"`
	Module_name string `Legend:"Modulo" Input:"TextNumCode"`
	Field_name  string `Legend:"Carpeta Campo" Input:"TextNum" PrincipalField:"ok"`
	Object_id   string `Legend:"Carpeta Id Archivos" Input:"InputPK"`
	File_area   string `Legend:"Area archivo" Input:"Text" PrincipalField:"ok" SkipCompletionAllowed:"true"`
	Extension   string `Legend:"Tipo Archivo" Input:"Text" SkipCompletionAllowed:"true"`
	Description string `Legend:"Descripción" Input:"Text" PrincipalField:"ok" SkipCompletionAllowed:"true"`

	Files string `Input:"Text" NotRequiredInDB:"true"` //nombre por defecto input html = files

	Object *model.Object

	App *model.Handlers

	model.FileConfig
	// contains filtered or unexported fields
}

func New

conf: field_name:voucher,user_photo,boleta... default file filetype:video, pdf, document. default imagen root_folder:static_files default "app_files" max_files:1, 4, 6.. default 6 max_kb_size:100, 400 default 50

func (File) AddBootFiles added in v0.0.16

func (f File) AddBootFiles(u *model.User, out *[]model.Response, from_data ...map[string]string) error

func (File) BuildFilePath added in v0.0.15

func (f File) BuildFilePath(data map[string]string) (file_path string)

func (File) BuildNewView added in v0.0.11

func (f File) BuildNewView(new_data []map[string]string) (html string)

func (File) BuildTag added in v0.0.12

func (File) BuildTag() string

func (File) CameraTurn added in v0.0.12

func (f File) CameraTurn(on bool)

func (File) ConfigFile

func (f File) ConfigFile() *model.FileConfig

func (File) Delete

func (f File) Delete(u *model.User, params ...map[string]string) ([]map[string]string, error)

func (File) GenerateFileNameOnDisk added in v0.0.14

func (f File) GenerateFileNameOnDisk() string

func (File) GetFilePathByID added in v0.0.4

func (f File) GetFilePathByID(params map[string]string) (file_path, file_area string, err error)

func (File) HtmlContainer added in v0.0.12

func (File) HtmlContainer() string

func (File) HtmlName

func (File) HtmlName() string

func (File) HtmlTag added in v0.0.3

func (f File) HtmlTag(id, field_name string, allow_skip_completed bool) string

func (*File) Input added in v0.0.3

func (f *File) Input() *model.Input

func (File) InputEnable added in v0.0.13

func (f File) InputEnable()

func (File) Read

func (f File) Read(u *model.User, params ...map[string]string) ([]map[string]string, error)

func (File) RegisterNewFile

func (f File) RegisterNewFile(new *model.FileNewToStore, form_data map[string]string) (map[string]string, error)

func (File) ResetInput added in v0.0.13

func (f File) ResetInput()

func (File) Update

func (f File) Update(u *model.User, data ...map[string]string) ([]map[string]string, error)

func (File) UploadFolderPath

func (f File) UploadFolderPath(data map[string]string) string

func (File) ViewComponentName added in v0.0.12

func (f File) ViewComponentName() string

Jump to

Keyboard shortcuts

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