Preconfiguration "PmaWebDir - Uploading files from Web client to server"
The preconfiguration creates an object of the PmaWebDir
object. It contains the scripts in the onPageModify
event for creating the file upload html
page. And in the onPageAction
event for processing and saving the received file.
In the dymanic html
page, in the onPageModify
event it is possible to define what type of file can be sent by the client and whether the client can send multiple files.
For example: Allow sending multiple files of the png, jpg and jpeg types. Then the corresponding row in the code most be modified as follows:
<input id="fileupload" name="myfile" type="file" accept=".png,.jpg,.jpeg" multiple/>
These configurators can be set before the preconfiguration is created:
|The name of created object||Name of the object created in the tree of Pma objects. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.