The WFileUpload widget allows you to upload a local file to
To properly use this widget you need to handle the uploaded()
or fileTooLarge() signals; even when upload() was not
An oversized file will result in a fileTooLarge() signal. The
default threshold value (128) for this signal is defined in the general
application settings file wt_config.xml by the parameter
max-request-size (Kb). See the Library overview for more details.
Also check using canUpload() if upload() will schedule
a new upload.
If (!canUpload()) then upload() will not have any effect.
If (canUpload()), then upload() will start a new file
If the upload completes succesfully then an uploaded()
signal will be emitted. Otherwise a fileTooLarge()
signal will be emitted.
Try dropping files in the widget below. It accepts a maximum of 5 files. You can drop one or multiple files at a time.