fileinput

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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"`
	Folder_id   string `Legend:"Carpeta Registro" Input:"InputPK"`
	File_area   string `Legend:"Area archivo" Input:"Text" PrincipalField:"ok" SkipCompletionAllowed:"true"`
	Description string `Legend:"Descripción" Input:"Text" PrincipalField:"ok" SkipCompletionAllowed:"true"`
	File_path   string `Legend:"Ubicación" Input:"FilePath" 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) BuildNewView added in v0.0.11

func (f File) BuildNewView(values string) (html string, err error)

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) FieldAddEventListener

func (File) FieldAddEventListener(field_name string) string

func (File) FileName

func (f File) FileName() 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) GoodTestData added in v0.0.3

func (File) GoodTestData() (out []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) InputValueChanges

func (File) InputValueChanges() string

func (File) Name added in v0.0.3

func (File) Name() string

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(header_name, upload_folder, file_name, extension string, form_data map[string]string) (map[string]string, error)

func (File) SelectedTargetChanges

func (File) SelectedTargetChanges() string

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(form_data map[string]string) string

func (File) ValidateField added in v0.0.3

func (File) ValidateField(data_in string, skip_validation bool, options ...string) error

func (File) WrongTestData added in v0.0.3

func (File) WrongTestData() (out []string)

Jump to

Keyboard shortcuts

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