class webfwt::FileUploader

sys::Obj
  fwt::Widget
    fwt::Pane
      webfwt::FileUploader

@Js

Source

FileUploader enables file uploading from a browser.

dialog

static Dialog dialog(Window w, FileUploader f)

Source

Return a Dialog to wrap given FileUploader instance.

headers

const Str:Str headers := [Str:Str][:]

Source

Additional HTTP headers to POST along with file content.

make

new make(|This|? f := null)

Source

It-block constructor.

multi

const Bool multi := false

Source

Allow multiple file uploading.

onComplete

EventListeners onComplete()

Source

EventListener invoked when all uploads have completed.

onLayout

virtual override Void onLayout()

Source

prefSize

virtual override Size prefSize(Hints hints := Hints.defVal)

Source

reset

Void reset()

Source

Reset this uploader, clearing all completed uploads or selected files.

upload

Void upload()

Source

Invoke upload process for currently selected files.

uri

const Uri uri

Source

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

Source

If true the POST content is formatted as "multipart/form-data". If false the raw file content is posted.