Table of Contents

behavior: file

Standard file selector.

Elements

that have this behavior applied by default:

These elements placed inside <form enctype=“multipart/form-data”> will cause content of the selected file to be sent to the server.

Attributes

that this behavior knows about:

Events

Together with the standard set of events (mouse, keyboard, focus) behavior: file generates:

Value

type json::value::V_STRING, reports filename selected.

Note that the value is read-only by code. Only user can set the value from UI. That is made intentionally to prevent arbitrary files to be sent from user's computer.