HttpFormDataParse - method of the Pm object
Parsing data from uploaded files or values in the form of multipart/form-data.
PmArray HttpFormDataParse(Object oData)
|oData||(Object) The PmBuffer object containing data regarding the file(s) uploaded by client.|
Returns an PmArray
objects in the following structure:
Type (text/plain, application/x-zip-compressed, image/jpeg, ...)
Text or binary data of the file
The HTML form can send data by the POST method to server in a simple text form application/x-www-form-urlencoded
, e.g. "Name1=Value1&Name2=Value2 ...", where the individual values can then be read by Pm.HTTPGetFormValue
The HTML form can also send the data by the POST method to server in a complex binary form multipart/form-data
, that may contain text values together with binary data and files. The raw data in the form of PmBuffer
can then be processed by the Pm.HttpFormDataParse
The method should facilitate the work with HTML forms because it removes manual decoding of the received data.
This method is not
functional in Web panels
An array of maps containing data from files uloaded by client.
var aParts = Pm.HttpFormDataParse(oData);