Preconfiguration "PmaWebDir - Uploading files from Web client to the server"
The preconfiguration creates an object of the
PmaWebDir type.
This preconfiguration can be created in the
PmaWeb or
PmaPanel object.
New
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 dynamic HTML page, in the
onPageModify event it is possible to define what type of file can be sent by the client to the server and whether the client can send multiple files.
For example: Enable 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 Pma object tree.
The maximum name length is 30 characters.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and first character must not be a number.
Default: "Upload". |
|