diff options
| author | Shulhan <ms@kilabit.info> | 2024-02-05 03:21:53 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-02-05 03:23:00 +0700 |
| commit | f2cfe0de0eeec8bc7abf9d754b9e89681743ecff (patch) | |
| tree | 802e8a32102a6786b4461e35b916d05b040558d0 /_www/interface.ts | |
| parent | f02e4647bae78222196dc06406b5024c1b435bd7 (diff) | |
| download | gorankusu-f2cfe0de0eeec8bc7abf9d754b9e89681743ecff.tar.xz | |
all: implement form input file
The FormInput now can be set to FormInputKindFile that will rendered
as "<input type='file' ...>" on the web user interface.
Once submitted, the file name, type, size, and lastModification will
be stored under FormInput Filename, Filetype, Filesize, and Filemodms.
Implements: https://todo.sr.ht/~shulhan/trunks/1
Diffstat (limited to '_www/interface.ts')
| -rw-r--r-- | _www/interface.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_www/interface.ts b/_www/interface.ts index 2b756b9..dc74fb5 100644 --- a/_www/interface.ts +++ b/_www/interface.ts @@ -9,6 +9,7 @@ export const CLASS_NAV_TARGET = "nav_target"; export const HASH_ENVIRONMENT = "environment"; export const HASH_LINKS = "links"; +export const FormInputKindFile = "file"; export const FormInputKindNumber = "number"; export const FormInputKindString = "string"; @@ -40,6 +41,10 @@ export interface FormInput { hint: string; kind: string; value: string; + filename: string; + filetype: string; + filesize: number; + filemodms: number; max?: number; min?: number; } |
