web.post

web.post

web.post

Function

Read the form POST field object.

Syntax

Parameters

No parameters.

Return value

TypeDescription
ObjectReturns the ordinary form field object in the request body.

Object structure

FieldTypeDescription
Any form field nameString/ArraySingle-value fields return String; multi-value fields with the same name return Array, and the array elements are String. When the field does not exist, the read result is Empty.

Example

Notes

  • The current implementation reads fields from multipart/form-data or form data.
  • The upload file field will not be written to web.post, please read it through web.files.