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 object: PmaWeb or PmaPanel..

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 objectName of the object created in the Pma objects 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 the first character must not be a number.
Default: "Upload".
Script in the onButtonUp event of the PmgButton object that opens the upload.htm page of the PmaWebDir object for selection and sending the file to the server.
JavaScriptSelect and copy to clipboard

var oCreator = Pm.CreateView(null, "/Web/Upload", "file:upload.htm", "target:_blank;");
See also:

Pm9.00.15: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.