Documentation ¶
Index ¶
- func ArchiveType(File *[]byte) string
- func CloneDirectory(origin, destiny string)
- type File
- func (f File) CreateFile(u *model.User, r *http.Request, params map[string]string) ([]map[string]string, error)
- func (f File) Delete(u *model.User, params ...map[string]string) ([]map[string]string, error)
- func (File) FieldAddEventListener(field_name string) string
- func (f File) FilePath(u *model.User, params map[string]string) (string, error)
- func (File) HtmlName() string
- func (File) InputValueChanges() string
- func (f File) MaximumFileSize() int64
- func (f File) Read(u *model.User, params ...map[string]string) ([]map[string]string, error)
- func (File) SelectedTargetChanges() string
- func (f File) Update(u *model.User, data ...map[string]string) ([]map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveType ¶
func CloneDirectory ¶
func CloneDirectory(origin, destiny string)
Types ¶
type File ¶
type File struct { //table Id_file string `Legend:"File Id" Input:"InputPK"` //0 id_file Module_name string `Legend:"Modulo" Input:"TextNumCode"` //1 module_name Field_name string `Legend:"Carpeta Campo" Input:"TextNum" PrincipalField:"ok"` //2 field_name Folder_id string `Legend:"Carpeta Registro" Input:"InputPK"` //3 folder_id Description string `Legend:"Descripción" Input:"Text" PrincipalField:"ok" SkipCompletionAllowed:"true"` //4 description File_path string `Legend:"Ubicación" Input:"FilePath" SkipCompletionAllowed:"true"` //5 file_path //config Files string `Input:"Text" NotRequiredInDB:"true"` //nombre por defecto input html = files Object *model.Object // contains filtered or unexported fields }
func New ¶
func New(m *model.Module, db model.DataBaseAdapter, id model.IdHandler, conf ...string) (*File, error)
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) CreateFile ¶ added in v0.0.20
func (f File) CreateFile(u *model.User, r *http.Request, params map[string]string) ([]map[string]string, error)
CreateFile upload files http handler
func (File) FieldAddEventListener ¶
func (File) InputValueChanges ¶
func (File) MaximumFileSize ¶ added in v0.0.20
func (File) SelectedTargetChanges ¶
Click to show internal directories.
Click to hide internal directories.