aboutsummaryrefslogtreecommitdiff
path: root/_www/interface.js
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-02-05 03:21:53 +0700
committerShulhan <ms@kilabit.info>2024-02-05 03:23:00 +0700
commitf2cfe0de0eeec8bc7abf9d754b9e89681743ecff (patch)
tree802e8a32102a6786b4461e35b916d05b040558d0 /_www/interface.js
parentf02e4647bae78222196dc06406b5024c1b435bd7 (diff)
downloadgorankusu-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.js')
-rw-r--r--_www/interface.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/_www/interface.js b/_www/interface.js
index d01baf1..bea7010 100644
--- a/_www/interface.js
+++ b/_www/interface.js
@@ -6,5 +6,6 @@ export const CLASS_NAV_LINK = "nav_link";
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";