class webfwt::FileUploader
sys::Obj fwt::Widget fwt::Pane webfwt::FileUploader
@Js
FileUploader enables file uploading from a browser.
- dialog
-
static Dialog dialog(Window w, FileUploader f)
Return a Dialog to wrap given FileUploader instance.
- headers
-
const Str:Str headers := [Str:Str][:]
Additional HTTP headers to POST along with file content.
- make
-
new make(|This|? f := null)
It-block constructor.
- multi
-
const Bool multi := false
Allow multiple file uploading.
- onComplete
-
EventListeners onComplete()
EventListener invoked when all uploads have completed.
- onLayout
-
virtual override Void onLayout()
- prefSize
- reset
-
Void reset()
Reset this uploader, clearing all completed uploads or selected files.
- upload
-
Void upload()
Invoke upload process for currently selected files.
- uri
-
const Uri uri
Target URI to upload files. Each file is uploaded on a discrete POST request. The original name of the file is contained in the
FileUpload-filename
request header. - useMultiPart
-
const Bool useMultiPart := false
If
true
the POST content is formatted as "multipart/form-data". Iffalse
the raw file content is posted.