HTML fileFormHandler(Void(a) fn, a dat, Bool prepost=true)
Arguments
fn: The handler functiondat: Data to pass to the handler functionprepost: Whether to run thePreContentandPostContentfunctions after submitting the form. This defaults to true, but may be useful to disable if the form results are not HTML.
Usage
Set up a form capable of uploading files, which when submitted calls fn(dat).
You will need to call allowFileUploads in your webconfig function to allow file uploads to be processed.